lilypond-user
[Top][All Lists]
Advanced

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

Re: positioning a rest


From: Simon Albrecht
Subject: Re: positioning a rest
Date: Sun, 14 Feb 2016 14:57:54 +0100

On 12.02.2016 22:02, Noeck wrote:
the problem with your code is that your code says the second rest is in
\oneVoice (this means there are no other simultaneous voices around).
But there is the c' at the same time in \voiceTwo and that confuses
LilyPond. If you mark the voices correctly, you will get this:

\version "2.19.32"
{
   \new Staff <<
     \time 3/4
     \new Voice { \oneVoice r4 \voiceOne r g' }
     \new Voice { \oneVoice s4 \voiceTwo c'2 }
   >>
}

Now the rest is on the top line emphasizing that it belongs to the upper
of simultaneous voice. Which is ok, but perhaps exaggerated. If you want
to reproduce your original measure exactly,
\override Rest.staff-position = 0 helps as Ben said.

IMO LilyPond’s choice to position the rest is clearly superior to that from the other engraving you posted. Often it is a bad idea to stick exactly to an example.

Best, Simon



reply via email to

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