]> git.donarmstrong.com Git - lilypond.git/commitdiff
*** empty log message ***
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 3 Dec 2005 12:02:58 +0000 (12:02 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 3 Dec 2005 12:02:58 +0000 (12:02 +0000)
python/musicxml.py
scripts/musicxml2ly.py

index 9537f9a7539cd40fc16f932e3050260e37b4932b..87240cbb160dc5a725a0e76fb32b47af87c521a4 100644 (file)
@@ -230,9 +230,10 @@ class Part (Music_xml_node):
        
 class Chord (Music_xml_node):
        pass
-
 class Dot (Music_xml_node):
        pass
+class Alter (Music_xml_node):
+       pass
 
 class Rest (Music_xml_node):
        pass
@@ -243,6 +244,7 @@ class Grace (Music_xml_node):
        pass
 
 class_dict = {
+       'alter': Alter,
        'grace': Grace,
        'rest':Rest,
        'dot': Dot,
@@ -332,11 +334,6 @@ def read_musicxml (name):
        strip_white_space (tree)
        return tree
 
-
-
-
-
-
 if __name__  == '__main__':
        tree = read_musicxml ('BeetAnGeSample.xml')
        test_musicxml (tree)
index ee8f84d1b61f91039d1277010906acbb1abcdc8f..a1a1def9b0fc1fc60d78256b80870d81681b97c6 100644 (file)
@@ -12,6 +12,8 @@ if os.environ.has_key ('LILYPONDPREFIX'):
 
 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'))
 
@@ -87,7 +89,7 @@ def musicxml_voice_to_lily_voice (voice):
        seq_music = musicexp.SequentialMusic()
 
        
-       seq_musicexp.elements = ly_voice
+       seq_music.elements = ly_voice
        return seq_music