lilypond-devel
[Top][All Lists]
Advanced

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

Re: Allows for degree of feathering to be tweaked (issue4289052)


From: Han-Wen Nienhuys
Subject: Re: Allows for degree of feathering to be tweaked (issue4289052)
Date: Thu, 17 Mar 2011 10:27:20 -0300

On Thu, Mar 17, 2011 at 9:46 AM,  <address@hidden> wrote:
>> this still supposes that there is just one fixed amount of
>
> featheriness?
>
> You're right.
> I'm honestly not sure exactly how feathering effects this function.  All
> of the tests I'm running seem to pass just fine, so I'm not sure if this
> function needs detailed feathering info.  Can you think of a case where
> this function will fail given the new feathering?  I've been running
> stuff like this:
>

See beam.cc-

  /*
    feather dir = 1 , relx 0->1 : factor 0 -> 1
    feather dir = 0 , relx 0->1 : factor 1 -> 1
    feather dir = -1, relx 0->1 : factor 1 -> 0
   */
  Real feather_factor = 1;
  if (feather_dir > 0)
    feather_factor = relx;
  else if (feather_dir < 0)
    feather_factor = 1 - relx;

it assumes the feathering is fulll across the x range.  I suspect that
the stem lengths mismatch the beams in broken beam cases.  Try setting
beam-thickness really small and see if the stems reach up to the
beams.

>  \relative c' {
>    \cadenzaOn
>    \override Staff . TimeSignature #'stencil = ##f
>    \override Voice . Beam #'breakable = ##t
>    \once \override Voice . Beam #'feather-direction = #'(1.0 . 0.0)
>    a32[ b c d e f g a ]
>    \once \override Voice . Beam #'feather-direction = #'(0.75 . 0.0)
>    a,32[ b c d e f8 g a ]
>    \once \override Voice . Beam #'feather-direction = #'(0.5 . 0.1)
>    a32[ b c d e f g a ]
> } >>
>
> http://codereview.appspot.com/4289052/
>



-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen



reply via email to

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