On Tue, Mar 17, 2015 at 06:06:58PM +0100, Urs Liska wrote: > Hi, > > I'm looking for a way to create a MultiMeasureRest of exactly the same > length as a music variable.
I've mentioned before that extractMusic is in my standard bag of tricks. If it were me, I'd use that. It's easier than writing something new that does the same thing. This does have the limitation that you have to set an arbitrary size limit, the maximum duration of moments of rest that can be created via this method. In this example, that limit is set at 50,000 bars. Jim
\version "2.18" \include "extractMusic.ily" % http://lsr.dsi.unimi.it/LSR/Item?id=542 music = { \key fis \major ais'4 gis' fis' gis' ais'4 ais' ais'2 gis'4 gis' gis'2 ais'4 ais' ais'2 ais'4 gis' fis' gis' ais'4 ais' ais' ais' gis'4 gis' ais' gis' fis'1 } \score { << \new Staff = "one" \music \new Staff = "two" \extractBegin R1*50000 \music >> }
foo.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
