Han-Wen Nienhuys <address@hidden> writes:
Nicolas Sceaux wrote:
------------------------------------------------------
parallelMusic = #(def-music-function (parser location voice-number
music) (number? ly:music?)
it's hack, but it's a cool one. With a little polishing, we should be
able to put it in the standard distribution. Wouldn't it be better to
store the voices in different variables? It would be nice to check
whether the lengths of all bars are equal.
If it were to be actually used, it should be a bit more generic. Maybe:
\parallelMusic voice-identifiers output-pattern parallel-music
For instance (not workable example, see below):
\parallelMusic #'(voiceA voiceB voiceC)
<< \new Staff \voiceA
\new Staff \voiceB
\new Staff \voiceC >>
{ c'1 | e' | g' |
d' | fis' | a' | }
<==>
<< \new Staff { c'1 | d' | }
\new Staff { e' | fis' | }
\new Staff { g' | a' | } >>