Re: merging simultaneous rests from two voices

2008-04-04 Thread Arvid Grøtting
Reinhold Kainhofer <[EMAIL PROTECTED]> writes:

> Am Montag, 31. März 2008 schrieb Wilbert Berendsen:
>> 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
>
> You know, the LSR contains lots of gems:
> http://lsr.dsi.unimi.it/LSR/Item?id=336

Thank you!

About that snippet (which I use all the time, whether I need it or
not): I recently discovered that it doesn't work with
\context{\RemoveEmptyStaffContext}.  For some reason, the following
does work and gives the same effect as
\context{\RemoveEmptyStaffContext}:

\context {
  %% Almost, but not quite, like RemoveEmptyStaffContext
  \Staff
  % \remove "Axis_group_engraver"
  \consists "Hara_kiri_engraver"
  \override Beam #'auto-knee-gap = #'()
  \override VerticalAxisGroup #'remove-empty = ##t
}

...just in case anyone was seeing the same problem.

(I'm still of the opinion that rest merging should be built-in and
default behaviour, and I will be until someone shows me a
hand-engraved counterexample.)

-- Arvid



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: merging simultaneous rests from two voices

2008-03-31 Thread Mats Bengtsson



Reinhold Kainhofer wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Montag, 31. März 2008 schrieb Wilbert Berendsen:
  

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



You know, the LSR contains lots of gems:
http://lsr.dsi.unimi.it/LSR/Item?id=336

  
For the multi-measure rests, see 
http://lists.gnu.org/archive/html/lilypond-user/2008-02/msg00673.html

a similar approach can be used as a simpler alternative to Trevor's
"easiest way":
\revert Rest #'direction
but the solution in LSR is of course preferable.

   /Mats


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: merging simultaneous rests from two voices

2008-03-31 Thread Wilbert Berendsen
Op maandag 31 maart 2008, schreef Reinhold Kainhofer:
> Am Montag, 31. März 2008 schrieb Wilbert Berendsen:
> > 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
>
> You know, the LSR contains lots of gems:
> http://lsr.dsi.unimi.it/LSR/Item?id=336

O, SHAME on ME for not perusing the LSR.!
Thanks Trevor and Reinhold!
best regards,
Wilbert Berendsen

-- 
LilyKDE, LilyPond for KDE: http://lilykde.googlecode.com/


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: merging simultaneous rests from two voices

2008-03-31 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Montag, 31. März 2008 schrieb Wilbert Berendsen:
> 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

You know, the LSR contains lots of gems:
http://lsr.dsi.unimi.it/LSR/Item?id=336

Cheers,
Reinhold


- -- 
- --
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH8MAITqjEwhXvPN0RAgLVAJ4pwlp75OqlyVfKsdYH8jp3YCaIIQCeM1mW
r88DkZ0axUec4ddt4lxQeIk=
=kWyZ
-END PGP SIGNATURE-


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: merging simultaneous rests from two voices

2008-03-31 Thread Trevor Daniels
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" <[EMAIL PROTECTED]>

To: 
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
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user





___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


merging simultaneous rests from two voices

2008-03-31 Thread Wilbert Berendsen
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
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user