espnet2.fileio.score_scp.NOTE
Less than 1 minute
espnet2.fileio.score_scp.NOTE
class espnet2.fileio.score_scp.NOTE(lyric, midi, st, et)
Bases: object
This class to represent musical notes with associated metadata.
lyric
The lyric associated with the note.
- Type: str
midi
The MIDI pitch value of the note.
- Type: int
st
The start time of the note in seconds.
- Type: float
et
The end time of the note in seconds.
- Type: float
Examples
>>> note = NOTE("hello", 60, 0.0, 0.5)
>>> print(note.lyric)
hello
>>> print(note.midi)
60
>>> print(note.st)
0.0
>>> print(note.et)
0.5