lilypond-user
[Top][All Lists]
Advanced

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

Re: Vertical position of rests on a custom staff


From: Pierre Perol-Schneider
Subject: Re: Vertical position of rests on a custom staff
Date: Sat, 1 Jun 2013 00:31:58 +0200

2013/6/1 Paul Morris <address@hidden>
Hello everyone,

I am working on adjusting the vertical position of rests on a custom staff and have run into a problem.  I basically want the rests to be positioned as they are on the standard staff, but in my custom staff there is no center line so the rests become oriented to the next line above that (except for whole rests which stay the same).  See the attached files.

I wrote an override function that moves the rests down to where I want them.  Half rests move down further, and I had to adjust the position of the dots for dotted rests as well.

So far so good.  The problem I ran into is that when the music includes \voiceOne and \voiceTwo, the rests appear in the right place by default, and my adjustment then puts them in the wrong place.  You can see this on the right hand side of the PDF.

Any thoughts on how to work around this?  I'm away from email for a day or two, but wanted to go ahead and send this while I was working on it.


Hi Paul,

try this :

restmusic =   \relative f {
  \override Rest #'Y-offset = #0
  \cadenzaOn
  ...
}

reply via email to

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