]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix another instance of bar number problem in musicxml2ly
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 7 Jan 2007 02:33:16 +0000 (03:33 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 8 Jan 2007 10:23:43 +0000 (11:23 +0100)
scripts/musicxml2ly.py

index 77fffc25fe745f662381d64f3738ca6c207db908..cab011a9d91793d79cd1f35c973d29a7c5428f07 100644 (file)
@@ -335,7 +335,10 @@ def musicxml_voice_to_lily_voice (voice):
             continue
 
         if n.is_first () and n._measure_position == Rational (0):
-            num = int (n.get_parent ().number)
+            try: 
+                num = int (n.get_parent ().number)
+            except ValueError:
+                num = 0
             voice_builder.add_bar_check (num)
         
         main_event = musicxml_note_to_lily_main_event (n)