bug-lilypond
[Top][All Lists]
Advanced

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

Re: rest position in a polyphonic staff


From: David Kastrup
Subject: Re: rest position in a polyphonic staff
Date: Sun, 15 Jul 2012 12:12:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Janek Warchoł <address@hidden> writes:

> On Sun, Jul 15, 2012 at 10:58 AM, David Kastrup <address@hidden> wrote:
>> StemSplit =
>> #(define-music-function (parser location p) (ly:pitch?)
>>    #{ \override Stem #'direction =
>>       #(lambda (grob) (if (ly:pitch<? (ly:event-property (event-cause grob)
>>                                       'pitch) p) UP DOWN))
>>    #})
>>
>> \new Voice {
>>   \relative c' { \StemSplit e'' c d e f g a b c d e f g a b c }
>> }
>
> Looks cool, but breaks with beamed notes:
>
> StemSplit =
> #(define-music-function (parser location p) (ly:pitch?)
>    #{ \override Stem #'direction =
>       #(lambda (grob) (if (ly:pitch<? (ly:event-property (event-cause grob)
>                                       'pitch) p) UP DOWN))
>    #})
>
> \relative f' {
>   \time 2/4
>   \StemSplit d''
>   f8 a g b
>   a c b d
>   c e d f
> }

Looks like one would need to investigate how the Stem/Beam hierarchy is
normally set up when autobeaming to make sure not to get mixed signals.

-- 
David Kastrup




reply via email to

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