Example #1
0
class Note(XMLElement):
    pitch: one(Pitch)
    duration: entity(int)
    voice: entity(int)
    type: entity(str)
    stem: entity(StemDirection.from_string)
    notation: optional(Notations)
Example #2
0
class Transpose(XMLElement):
    diatonic: entity(int)
    chromatic: entity(int)
Example #3
0
class Clef(XMLElement):
    sign: entity(PitchStep.from_string)
    line: entity(int)
Example #4
0
class Time(XMLElement):
    beats: entity(int)
    beat_type: entity(int)
Example #5
0
class Key(XMLElement):
    fifths: entity(int)
    mode: entity(str)
Example #6
0
class Encoding(XMLElement):
    encoder: entity(str)
    software: entity(str)
    supports: entity(str)
    encoding_date: entity(date)
    encoding_description: entity(str)
Example #7
0
class Pitch(XMLElement):
    step: entity(PitchStep.from_string)
    octave: entity(int)
Example #8
0
class Attributes(XMLElement):
    divisions: entity(int)
    time: one(Time)
    key: one(Key)
    clef: one(Clef)
    transpose: one(Transpose)