]> git.donarmstrong.com Git - lilypond.git/commitdiff
MusicXML: Use \voiceOne up to \voiceFour in multi-voice staves
authorReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 18 Sep 2007 21:18:41 +0000 (23:18 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 3 Oct 2007 16:39:49 +0000 (18:39 +0200)
Lilypond has \voiceOne up to \voiceFour, so use them (instead of going
only up to \voiceTwo)

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

index d93d2818bee797e4db95b055bb68512b6e655e02..45a2e6d4c8ed832297cb191afabe578ac82e81e6 100644 (file)
@@ -966,7 +966,8 @@ class Staff (StaffGroup):
                 n += 1
                 voice_count_text = ''
                 if nr_voices > 1:
-                    voice_count_text = {1: ' \\voiceOne'}.get (n, ' \\voiceTwo')
+                    voice_count_text = {1: ' \\voiceOne', 2: ' \\voiceTwo',
+                                        3: ' \\voiceThree'}.get (n, ' \\voiceFour')
                 printer ('\\context Voice = "%s" {%s \\%s }' % (v,voice_count_text,v))
                 printer.newline ()