From: Reinhold Kainhofer Date: Tue, 18 Sep 2007 21:25:55 +0000 (+0200) Subject: MusicXML: A grace note at the beginning shall not set staff for the voice X-Git-Tag: release/2.11.35-1~107 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2da532f11f9f472c653995c64cf46e98a46f27e1;p=lilypond.git MusicXML: A grace note at the beginning shall not set staff for the voice 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 --- diff --git a/python/musicxml.py b/python/musicxml.py index 637e4d62f4..9788d9745d 100644 --- a/python/musicxml.py +++ b/python/musicxml.py @@ -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