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