From 2da532f11f9f472c653995c64cf46e98a46f27e1 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Tue, 18 Sep 2007 23:25:55 +0200 Subject: [PATCH] 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 --- python/musicxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5