[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: very long rests...
From: |
Gilles |
Subject: |
Re: very long rests... |
Date: |
Sat, 23 Feb 2013 19:40:17 +0100 |
User-agent: |
Opera Mail/12.14 (Linux) |
> I have a pretty long score (1+ hour, 1200+ bars) with many time
> changes (800+ i guess).
> Now at several points the thing i need to write is "Multi-measure-rest
> until bar 1100" or a similar long skip.Would #(mmrest-of-length
identifier) help?
You can indeed manually, extract the 1100 measures of an instruments and
assign it to an identifier.
You can also consider functions described here :
http://lsr.dsi.unimi.it/LSR/Item?id=542
that can do the extraction automatically, like in this example :
%%%%%%%%%%%%%%%%%%%%%%
\include "extractMusic.ly"
global = {
\time 4/4 s1*2
\time 5/8 s8*5*2
\time 12/8 s8*12*2
\time 4/4 s1*4
% measure 10
}
music = \repeat unfold 82 b8
fragBegin = \extractBegin \mmR \upToMeasure #6 % Rest
fragEnd = \extractEnd \music \upToMeasure #6 % music
newMusic = { <>_"Rest" \fragBegin
<>_"music again" \fragEnd }
\score { <<
\new Staff <<\global \music >>
\new Staff <<\global \newMusic >>
>>
}
%%%%%%%%%%%%%%%%%%%%%%%
download link directory for extractMusic.ly :
http://gillesth.free.fr/Lilypond/extractMusic/
See the small doc also included in this directory, for more details.
--
Gilles