Hello!

When I write my files I have my notes written in some variable (i.e,
SomeInstrument). Those notes are written linearly and do not contain any
repeat (volta nor percent). My repeats are done through a second variable -
like a tempo map variable (i.e, TempoMap). When I merge the two variables
and print them on a score, they are correctly printed together - notes are
printed on a single staff that has repeats.
However, running the staff through "\unfoldRepeats" makes the two variables
"split": the notes are printed only once and the tempo map goes on. Of
course I imagine that this is standard behaviour.
I would like to know if it is possible to "infect" or "taint" a staff with
repeats, so when the Staff is run through "\unfoldRepeats" it prints out
the notes as it would be if the notes were written with the repeats along
in the same variable.

The reason I like writing this way is because it is much easier to write
for multiple instruments: I only write the notes and the tempo map adds the
score. I'm seeking to "taint" the Staffs so that I can have a conductors'
score automatically.

%%%%%CODE BEGINS
\version "2.25.20"
TempoMap = {s1 | \repeat volta 4 {s1 s1 s1 s1}}
SomeInstrument = {d''1 | c''1 c''1 c''1 c''1}
music = {
\new Staff {
<<
  \context Voice = voiceA \SomeInstrument
  \context Voice = voiceB \TempoMap
>>
} % end of Staff
} % end of variable
\score {\music}
\score {\unfoldRepeats \music}
%%%%CODE ENDS

Reply via email to