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

Issue 4450052: Ignore accidentals of the beam itself when guessing an initial configuration. (Closed)

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

Description

Ignore accidentals of the beam itself when guessing an initial configuration. Fixes #1613.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -5 lines) Patch
M lily/beam.cc View 3 chunks +21 lines, -5 lines 1 comment Download

Messages

Total messages: 5
MikeSol
http://codereview.appspot.com/4450052/diff/1/lily/beam.cc File lily/beam.cc (right): http://codereview.appspot.com/4450052/diff/1/lily/beam.cc#newcode1221 lily/beam.cc:1221: This solution doesn't work for: \new Staff { << ...
13 years ago (2011-04-22 21:20:47 UTC) #1
hanwenn
On Fri, Apr 22, 2011 at 6:20 PM, <mtsolo@gmail.com> wrote: > > \new Staff { ...
13 years ago (2011-04-23 03:29:39 UTC) #2
mike_apollinemike.com
On Apr 22, 2011, at 11:29 PM, Han-Wen Nienhuys wrote: > On Fri, Apr 22, ...
13 years ago (2011-04-23 12:28:32 UTC) #3
hanwenn
On Sat, Apr 23, 2011 at 9:28 AM, mike@apollinemike.com <mike@apollinemike.com> wrote: >>> >>> One interesting ...
13 years ago (2011-04-24 00:33:19 UTC) #4
mike_apollinemike.com
13 years ago (2011-04-24 00:46:04 UTC) #5
On Apr 23, 2011, at 8:33 PM, Han-Wen Nienhuys wrote:

> On Sat, Apr 23, 2011 at 9:28 AM, mike@apollinemike.com
> <mike@apollinemike.com> wrote:
> 
>>>> 
>>>> One interesting thing is that it is the stems, not the noteheads, that
>>>> are pushing this down.  If you remove stems from the
>>>> beam-collision-engraver, this problem does not arise.  Why would stems
>>>> do this but not note heads?
>>> 
>>> The problem is that the initial guess for the configuration has two
>>> choices: over all 'big' collisions, and below the big collisions.  The
>>> separate high note adds a collision that is impossible to pass from
>>> the top, so we revert to the bottom.
>>> 
> 
>> Even with a small high note (see above) the problem kicks in.
>> If you want, I have some time next week to put in printf's and see what the
exact numerical cutoff is for picking the lower solution.  My first commitment
is to have a look @ Janek's flag code, and then I can look over the beam code.
> 
> The real solution is to work with a list of intervals rather than just
> an up/down choice.  I think the simple quick solution is to disable
> stems for beam collisions for now.
> 
> 

If you're confident that the problem will only be caused by stems and not clefs,
time signatures, etc., I'll do it.  Otherwise, I think it'd be worth it to work
on the list-of-intervals solution.  Otherwise, beams won't avoid grace note
stems, which is the whole reason the stem code was added.

Cheers,
MS

Sign in to reply to this message.

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