From 4e77471a95103dab4aea4e94b896171c30c35290 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Fri, 22 Feb 2008 15:49:17 +0100 Subject: [PATCH] MusicXML: The tag can have multiple children --- scripts/musicxml2ly.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index 4513e363e6..2738e4fc03 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -267,9 +267,9 @@ def staff_attributes_to_lily_staff (mxl_attr): clef_sign = {"percussion": "percussion", "TAB": "tab"}.get (sign.get_text (), None) lines = 5 - details = attributes.get_maybe_exist_named_child ('staff-details') - if details: - staff_lines = details.get_maybe_exist_named_child ('staff-lines') + details = attributes.get_named_children ('staff-details') + for d in details: + staff_lines = d.get_maybe_exist_named_child ('staff-lines') if staff_lines: lines = string.atoi (staff_lines.get_text ()) -- 2.39.2