Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2709)

Issue 4289052: Allows for degree of feathering to be tweaked (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by MikeSol
Modified:
12 years, 10 months ago
Reviewers:
mike, hanwenn
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Allows for degree of feathering to be tweaked

Patch Set 1 : Allows for degree of feathering to be tweaked #

Total comments: 5

Patch Set 2 : Responses to Han Wen's suggestions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -7 lines) Patch
M lily/beam.cc View 1 4 chunks +7 lines, -4 lines 0 comments Download
M lily/include/spanner.hh View 1 chunk +1 line, -0 lines 0 comments Download
M lily/spanner.cc View 3 chunks +12 lines, -2 lines 0 comments Download
M scm/define-grob-properties.scm View 1 1 chunk +1 line, -0 lines 0 comments Download
M scm/define-grobs.scm View 1 1 chunk +2 lines, -1 line 0 comments Download
M scm/output-lib.scm View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 5
MikeSol
Makes degree of feathering tweakable. Will need a convert-ly rule and several changes in various ...
13 years, 2 months ago (2011-03-17 11:34:47 UTC) #1
hanwenn
http://codereview.appspot.com/4289052/diff/2001/lily/beam.cc File lily/beam.cc (right): http://codereview.appspot.com/4289052/diff/2001/lily/beam.cc#newcode1508 lily/beam.cc:1508: Interval feather_interval = robust_scm2interval (me->get_property ("feather-direction"), Interval (0.0, 0.0)); ...
13 years, 2 months ago (2011-03-17 12:22:57 UTC) #2
MikeSol
http://codereview.appspot.com/4289052/diff/2001/lily/beam.cc File lily/beam.cc (right): http://codereview.appspot.com/4289052/diff/2001/lily/beam.cc#newcode1518 lily/beam.cc:1518: xl, xr, Direction (feather_dir), On 2011/03/17 12:22:57, hanwenn wrote: ...
13 years, 2 months ago (2011-03-17 12:46:53 UTC) #3
hanwenn
On Thu, Mar 17, 2011 at 9:46 AM, <mtsolo@gmail.com> wrote: >> this still supposes that ...
13 years, 2 months ago (2011-03-17 13:27:21 UTC) #4
mike_apollinemike.com
13 years, 2 months ago (2011-03-17 15:46:23 UTC) #5
On Mar 17, 2011, at 9:27 AM, Han-Wen Nienhuys wrote:

> On Thu, Mar 17, 2011 at 9:46 AM,  <mtsolo@gmail.com> 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.

I don't see any difference...

\new Staff <<
  \relative c' {
    \cadenzaOn
    \override Staff . TimeSignature #'stencil = ##f
    \override Voice . Beam #'breakable = ##t
    \override Voice . Beam #'beam-thickness = #0.1
    \override 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 ]
    \once \override Voice . Beam #'feather-direction = #'(0.5 . 0.1)
    a32[ b c d e \bar "" \break f g a ]
    \once \override Voice . Beam #'feather-direction = #'(1.0 . 0.5)
    a32[ b c d e \bar "" \break f g a ]
} >>


Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b