When a staff has more than one voice, we get tons of colliding stems, so
put \voiceOne in the first voice and \voiceTwo in the remaining. This
still breaks with more than two voices, but the majority of cases works
fine now.
Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com>
else:
printer ('\\context Staff << ')
printer.newline ()
+ n = 0
+ nr_voices = len (voices)
for [v, lyrics] in voices:
- printer ('\\context Voice = "%s" \\%s' % (v,v))
+ n += 1
+ voice_count_text = ''
+ if nr_voices > 1:
+ voice_count_text = {1: ' \\voiceOne'}.get (n, ' \\voiceTwo')
+ printer ('\\context Voice = "%s" {%s \\%s }' % (v,voice_count_text,v))
printer.newline ()
for l in lyrics: