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 10:58:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Janek Warchoł <address@hidden> writes:

> On Sat, Jul 14, 2012 at 5:50 PM, -Eluze <address@hidden> wrote:
>> \new Staff <<
>>   \set Timing.beamExceptions = #'()
>>   \new Voice \relative c'' {
>>     \voiceOne
>>     \stemNeutral
>>     a8 c e f e d f e
>>   }
>>   \new Voice \relative {
>>     \voiceTwo
>>     a1
>>   }
>>>>
>>
>> this generates a warning in the log and the first stems [a and c] go down.
>> it would be helpful if I could override the flipping position for stems - is
>> there a command for that?
>
> You mean a command to tell Lily "i want the stems go down only if the
> notes are this much up on the staff"?  I don't think there is a
> command for that.  You can use
>
>   \override Stem #'neutral-direction = #up
>   \override Beam #'neutral-direction = #up
>
> but these only work for cases directly on the middle of the staff,
> i.e. they'll make beam here { a'[ c''] } go up, but won't affect { b'[
> c''] } at all.
>
> hth,
> Janek
>
> PS Colin, there's no bug, but the above might be a feature request

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


-- 
David Kastrup




reply via email to

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