]> git.donarmstrong.com Git - lilypond.git/commitdiff
MusicXML: A grace note at the beginning shall not set staff for the voice
authorReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 18 Sep 2007 21:25:55 +0000 (23:25 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 3 Oct 2007 16:39:53 +0000 (18:39 +0200)
The sample files from Recordare contain a piece where the voice on the
upper staff of a PianoStaff starts with a grace displayed in the second
staff. So far, this put the whole voice on the second staff. Thus, grace
notes are now ignored when determining the voice for a staff.

Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com>
python/musicxml.py

index 637e4d62f4dd15c2e789ad850eb5a88f5d27ccab..9788d9745dd9fda26d898660bb13af0634bd168e 100644 (file)
@@ -392,7 +392,7 @@ class Musicxml_voice:
            and e.get_maybe_exist_typed_child (Staff)):
            name = e.get_maybe_exist_typed_child (Staff).get_text ()
 
-           if not self._start_staff:
+           if not self._start_staff and not e.get_maybe_exist_typed_child (Grace):
                self._start_staff = name
            self._staves[name] = True