----- Original Message -----
From: "James Lowe" <[email protected]>
To: <[email protected]>
Sent: Saturday, January 22, 2011 5:52 PM
Subject: Merging Rests in Single Staff with more than one 'voice'
Hello,
I don't often use multiple voices in a single staff, so am a bit
unfamiliar and am still finding my way.
However I cannot easily see how I can take two 'voices' each from a single
source such that when they are combined on a single staff the rests that
both voices share are only printed once.
For example
\musicSourceOne = { a4 b c d | R1*4 | a4 r b r2 }
\musicSourceTwo = { f4 r f r | R1*4 | f4 f g r2 }
<< \musicSourceOne // \musicSourceTwo >>
Is about as basic as it gets.
However in measures two and three both the Multimeasure rest and the r2
are printed for each voice.
I looked for a merge-rest type function and the LSR but couldn't see an
easy way to do this without more complex editing.
Did I miss something or am I going to have to make 'skips' in one voice
and manually position the r2 so it sits on the correct line 'as if' it
were only printed once in the other?
Thanks for your help.
>
James
I do this quite a bit, and I always use explicitly instantiated voices, and
turn voiceOne and voiceTwo on and off (with oneVoice) as needed. I use
skips when there is really only one voice. You can do what others show with
skips and explicitly placed rests, or you could override the rest/MMR rest
with something like:
\override MultiMeasureRest #'staff-position = #0
\override Voice.Rest #'staff-position = #-0.1
HTH
--
Phil Holmes
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user