I find it advantageous when working with multiple voices to keep
'structural' information (meter, tempo, etc.) in a separate voice that gets
combined with the other voices as illustrated in the image and code below.
In this example, the pdf layout is correct and the MIDI output honors the
tempo change, but doesn't repeat the second measure despite using a
separate score block with \unfoldRepeats.
music = \relative c' { c4 d e | f g a b }
structure = {
\time 3/4 \tempo 4=60 s2.
\time 4/4 \tempo 4=120 \repeat volta 2 { s1 }
}
\score {
\new Staff = "Music" {
<<
\new Voice = "Music" { \voiceOne \music }
\new Voice = "Structure" { \voiceTwo \structure }
>>
}
}
\score {
\unfoldRepeats { << \structure \\ \music >> }
\midi {
}
}
I can get the MIDI to repeat by copying the \repeat into the music
variable, e.g.
music = \relative c' { c4 d e | \repeat volta 2 { f g a b } }
but that defeats the convenience of keeping the 'structural' info in a
separate voice. Is there a way to get the repeats in MIDI without
resorting to copying them into the notation for every voice?
Thanks,
Mike Ellis
*TransLily <https://github.com/Michael-F-Ellis/TransLily>-- a minimal
assistant for part transcription with LilyPond.*
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user