lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: merging simultaneous rests from two voices


From: Trevor Daniels
Subject: Re: merging simultaneous rests from two voices
Date: Mon, 31 Mar 2008 11:38:47 +0100

The easiest way is to position the rests by writing a note followed by \rest. This allows you to position both rests in the same place. See Rests in the manual.

Trevor D

----- Original Message ----- From: "Wilbert Berendsen" <address@hidden>
To: <address@hidden>
Sent: Monday, March 31, 2008 11:13 AM
Subject: merging simultaneous rests from two voices


Hi,

in choir music with two voices on a staff, I want to merge rests if both
voices have the same rest-value at the same time.

I know that I can use \oneVoice r r \voiceOne in the upper voice and skips in
the other voice, but I want to use the same voice data also on separate
staffs. I could manage that with tags, but that clutters the voices.

So I'm trying to write a scheme macro that:
- just inserts a rest if the voice is in \oneVoice mode,
- inserts '\oneVoice r \voiceOne' if the voice is in \voiceOne mode,
- or inserts 's' if the voice is in \voiceTwo mode

My question: how do I determine from within scheme which mode the voice is in? I guess that I should read the 'direction property from some object, but from
which?

Related question: isn't there a simpler way to just merge rests if they occur
in both voices? Something like:
\override Staff.NoteColumn #'merge-rests = ##t
That should merge rests on the Staff level if all voices have rests of the
same duration. I would be willing to write code for such a function, but I
would not know where to start in the C++ code...

best regards,
Wilbert Berendsen


--
LilyKDE 0.4.11 is out: http://lilykde.googlecode.com/ Run LilyPond from Kate,
or Konqueror, point and click, indenting, lyric hyphenation, convert etc.


_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user






reply via email to

[Prev in Thread] Current Thread [Next in Thread]