]> 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>
Sun, 7 Jan 2007 02:33:16 +0000 (03:33 +0100)
scripts/musicxml2ly.py

index ab5989dd6f8447d1c61f19e3222dd9fc34dfb128..66774fa672ed0361ad85a6ada01e33975f8e7c56 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)