Dan Israël <[email protected]> writes:
> Hi,
>
> I am writing a piece with a rythmic staff under a melodic staff. I'd
> like that the rhythmic pattern (one bar) repeats itself
> automatically, enough times in order to fit the length of the piece
> (as determined by the melodic staff)
>
> Thanks a lot for your help !
rhythm = { \repeat unfold 2 { c8 \times 2/3 { c16 c c }} c8 c
\repeat unfold 2 { c8 \times 2/3 { c16 c c }}
\times 2/3 { c16 c c } \times 2/3 { c16 c c }}
melody = \relative c' { c2. d e f e d c d e f e d c c }
\new StaffGroup << \time 3/4
\new Staff \melody
\new RhythmicStaff \repeat unfold
$(ly:moment-main-numerator
(ly:moment-div (ly:music-length melody)
(ly:music-length rhythm)))
\rhythm
>>
--
David Kastrup
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user