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: David Kastrup
Subject: Re: Vertical position of rests on a custom staff
Date: Mon, 03 Jun 2013 09:40:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Paul Morris <address@hidden> writes:

> 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?

Make your function do different things depending on the value of
(ly:grob-property-data 'direction grob)

This will be +1 or -1 for \voiceOne and \voiceTwo (or their
equivalents), and something else (0 or a function) when in \oneVoice
mode.

-- 
David Kastrup




reply via email to

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