[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
merging simultaneous rests from two voices
From: |
Wilbert Berendsen |
Subject: |
merging simultaneous rests from two voices |
Date: |
Mon, 31 Mar 2008 12:13:28 +0200 |
User-agent: |
KMail/1.9.7 |
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.
- merging simultaneous rests from two voices,
Wilbert Berendsen <=