lilypond-user
[Top][All Lists]
Advanced

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

Re: Fwd: Middle voices and rests


From: David Kastrup
Subject: Re: Fwd: Middle voices and rests
Date: Tue, 15 May 2012 07:46:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Nick Payne <address@hidden> writes:

> On 14/05/12 07:31, David B. Stocker wrote: 
>
>     Hi group,
>     
>     Any guess on how to make LilyPond automatically shift rests the
>     way it shifts notes in middle voices to avoid collisions with
>     other notes?
>     
>
> It doesn't happen automatically. I find myself having to do this
> frequently enough in polyphonic single stave guitar scores that I use
> a music function:
>
> rShift = #(define-music-function (parser location move) (number?) #{
>     \once \override Voice.Rest #'X-offset = #move
>
> and then use it like:
>
> \rShift #0.3 b4\rest
>
> I also have situations where the default size of the rest is too large
> to fit between the notes in the outer voices, and there I use:
>
> rSize = #(define-music-function (parser location size) (number?) #{
>     \once \override Voice.Rest  #'font-size = #size
> #})
>
> \rSize #-1 b4\rest

It might be worth mentioning that something like

<< c''4 \\ \tweak #'X-offset #1.3 \tweak #'font-size #-2 c'\rest >>

will work (as of 2.15.20 or so, the time compulsory EventChord wrapping
was canned).  That's somewhat more straightforward.

-- 
David Kastrup




reply via email to

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