Music ClassΒΆ

The muspy.Music class is the core element of MusPy. It is a universal container for symbolic music.

Attributes Description Type Default
metadata Metadata muspy.Metadata muspy.Metadata()
resolution Time steps per beat int muspy.DEFAULT_RESOLUTION
tempos Tempo changes list of muspy.Tempo []
key_signatures Key signature changes list of muspy.KeySignature []
time_signatures Time signature changes list of muspy.TimeSignature []
downbeats Downbeat positions list of int []
lyrics Lyrics list of muspy.Lyric []
annotations Annotations list of muspy.Annotation []
tracks Music tracks list of muspy.Track []

Hint

An example of a MusPy Music object as a YAML file is available here.