Track ClassΒΆ

The muspy.Track class is a container for music tracks. In MusPy, each track contains only one instrument.

Attributes Description Type Default
program MIDI program number int (0-127) 0
is_drum If it is a drum track bool False
name Track name str  
notes Musical notes list of muspy.Note []
chords Chords list of muspy.Chord []
lyrics Lyrics list of muspy.Lyric []
annotations Annotations list of muspy.Annotation []

(MIDI program number is based on General MIDI specification; see here.)