Thanks Rick, your idea is closest to what I wanted. Definetely I
will adapt this in my scores! :-)
Brian, Kieren -- thank you for your responses.
>I have a piece of music
where measures have 4/4 time and 5/4
Robert,
Do you intend to print the time signatures each measure? If so,
the
repeat unfold solution in parallel with the music is probably
the best
way to go.
Even if you don't want to show the time signatures, the repeat
unfold
in parallel is probably still the easiest way to go. Last time
I did
something like this, I used:
#(define ((compound-time one two num) grob)
(grob-interpret-markup grob
(markup #:override '(baseline-skip . 0) #:number
(#:line (
(#:column (one num))
#:vcenter "+"
(#:column (two num))))
)))
\new Staff {
<<
{
\override Staff.TimeSignature #'stencil = #(compound-time "4"
"5" "4")
\time 4/4
s1
\override Staff.TimeSignature #'stencil = ##f
\time 5/4
s4*5
\repeat unfold 15 { \time 4/4 s1 \time 5/4 s4*5}
}
{
\repeat unfold 16 { c'1 c'1 c'4 } % put your actual music
here
}
>>
}
There may be easier or more elegant ways, but this did the trick
for me.