class Chord (Music_xml_node):
pass
-
class Dot (Music_xml_node):
pass
+class Alter (Music_xml_node):
+ pass
class Rest (Music_xml_node):
pass
pass
class_dict = {
+ 'alter': Alter,
'grace': Grace,
'rest':Rest,
'dot': Dot,
strip_white_space (tree)
return tree
-
-
-
-
-
if __name__ == '__main__':
tree = read_musicxml ('BeetAnGeSample.xml')
test_musicxml (tree)
if os.path.exists (os.path.join (datadir, 'share/lilypond/@TOPLEVEL_VERSION@/')):
datadir = os.path.join (datadir, 'share/lilypond/@TOPLEVEL_VERSION@/')
+elif os.path.exists (os.path.join (datadir, 'share/lilypond/current/')):
+ datadir = os.path.join (datadir, 'share/lilypond/current/')
sys.path.insert (0, os.path.join (datadir, 'python'))
seq_music = musicexp.SequentialMusic()
- seq_musicexp.elements = ly_voice
+ seq_music.elements = ly_voice
return seq_music