Re: Automatic repeat
Dan Israël 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Automatic repeat
Hi Dan, I'm sure it would be rather convenient to have the rhythmic pattern determine its length automatically (if that was what you were looking for). But why don't you just use \repeat unfold X { ... }, and substitute for X the final bar number of whatever piece you are working on? It's not all automatic, but then again, it's rather straight forward ... More info: http://lilypond.org/doc/v2.14/Documentation/notation/long-repeats#written_002dout-repeats Best, Robert On Mon, Feb 13, 2012, at 11:55 AM, Dan Israël wrote: > 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 ! > > > Dan > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Automatic repeat
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 ! Dan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user