Exemplo n.º 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)
Exemplo n.º 2
0
class Transpose(XMLElement):
    diatonic: entity(int)
    chromatic: entity(int)
Exemplo n.º 3
0
class Clef(XMLElement):
    sign: entity(PitchStep.from_string)
    line: entity(int)
Exemplo n.º 4
0
class Time(XMLElement):
    beats: entity(int)
    beat_type: entity(int)
Exemplo n.º 5
0
class Key(XMLElement):
    fifths: entity(int)
    mode: entity(str)
Exemplo n.º 6
0
class Encoding(XMLElement):
    encoder: entity(str)
    software: entity(str)
    supports: entity(str)
    encoding_date: entity(date)
    encoding_description: entity(str)
Exemplo n.º 7
0
class Pitch(XMLElement):
    step: entity(PitchStep.from_string)
    octave: entity(int)
Exemplo n.º 8
0
class Attributes(XMLElement):
    divisions: entity(int)
    time: one(Time)
    key: one(Key)
    clef: one(Clef)
    transpose: one(Transpose)