From: Han-Wen Nienhuys Date: Sat, 6 Jan 2007 13:58:21 +0000 (+0100) Subject: Fix #222. X-Git-Tag: release/2.11.10-1~73 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f8e3fe1ed161bc23174b1c8ee58f04ede1d73496;p=lilypond.git Fix #222. Insert use measure number 0 if not a number. --- diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index 6c2691c30c..ab5989dd6f 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -313,7 +313,12 @@ def musicxml_voice_to_lily_voice (voice): if isinstance (n, musicxml.Attributes): if n.is_first () and n._measure_position == Rational (0): - voice_builder.add_bar_check (int (n.get_parent ().number)) + try: + number = int (n.get_parent ().number) + except ValueError: + number = 0 + + voice_builder.add_bar_check (number) for a in musicxml_attributes_to_lily (n): voice_builder.add_music (a, Rational (0)) continue