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

Issue 276560043: Improve beam count handling with subdivided beams

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 4 months ago by git
Modified:
8 years, 4 months ago
Reviewers:
pkx166h, dak, carl.d.sorensen, Trevor Daniels, c_sorensen
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Improve beam count handling with subdivided beams Subdivision beam count was improved in issue 4355, commit 8fa2d858, but partially reverted in commit 0382ed88. - Before 4355 there was always one beam at the subdivision - After 4355 the beam count reflected the metric value of the subdivision's location - After commit 8fa2d858 the beam count matched baseMoment The behaviour after 4355 is correct as it gives an immediate feedback on the metric situation, and is suggested by Gould. The later revert was to avoid a side-effect, namely the inconsistency with shortened beams: If the remaining length of the beam is less than the length of the current metric group the result was confusing. This patch reverts the effect of the latest commit, reinstating the behaviour of issue 4355. However, it improves handling to remove the unwanted side-effect: - when the remaining length of the beam is shorter than the next group (e.g. subdivision at an 1/8 point, but only 3/32 left) the beam count matches the length of the remainder: 1/16 <= remainder < 1/8 => 2 beams 1/32 <= remainder < 1/16 => 3 beams etc. - but if only one stem is left after the subdivision this is not applied. The subdivision has the regular number matching the metric value, and the trailing single stem has beamlets according to its actual length

Patch Set 1 #

Total comments: 5

Patch Set 2 : Respond to review comments #

Total comments: 2

Patch Set 3 : Revert changes to snippets file #

Patch Set 4 : Simplify code by cleaning up "old" code #

Patch Set 5 : Add commit with updated doc snippet #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -33 lines) Patch
A + Documentation/snippets/new/subdividing-beams.ly View 1 3 chunks +18 lines, -9 lines 0 comments Download
M Documentation/snippets/subdividing-beams.ly View 1 3 4 3 chunks +26 lines, -10 lines 0 comments Download
M input/regression/beam-subdivide-quarter-notes.ly View 1 chunk +3 lines, -4 lines 0 comments Download
A input/regression/beam-subdivide-shortened-beam.ly View 1 chunk +28 lines, -0 lines 0 comments Download
A input/regression/beam-subdivide-trailing-stem.ly View 1 chunk +22 lines, -0 lines 0 comments Download
M input/regression/beam-subdivision.ly View 1 chunk +2 lines, -2 lines 0 comments Download
M lily/beaming-pattern.cc View 1 2 3 3 chunks +35 lines, -8 lines 0 comments Download
M lily/include/beaming-pattern.hh View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 11
Carl
THe code looks good to me. Just some minor details to look at. https://codereview.appspot.com/276560043/diff/1/Documentation/snippets/new/subdividing-beams.ly File ...
8 years, 4 months ago (2015-12-22 00:48:54 UTC) #1
git
Respond to review comments
8 years, 4 months ago (2015-12-22 00:59:02 UTC) #2
git
Thanks for the comments, changes uploaded. https://codereview.appspot.com/276560043/diff/1/Documentation/snippets/new/subdividing-beams.ly File Documentation/snippets/new/subdividing-beams.ly (right): https://codereview.appspot.com/276560043/diff/1/Documentation/snippets/new/subdividing-beams.ly#newcode7 Documentation/snippets/new/subdividing-beams.ly:7: \version "2.19.34" On ...
8 years, 4 months ago (2015-12-22 00:59:40 UTC) #3
pkx166h
https://codereview.appspot.com/276560043/diff/20001/Documentation/snippets/subdividing-beams.ly File Documentation/snippets/subdividing-beams.ly (right): https://codereview.appspot.com/276560043/diff/20001/Documentation/snippets/subdividing-beams.ly#newcode7 Documentation/snippets/subdividing-beams.ly:7: %% Note: this file works from version 2.19.34 Urs, ...
8 years, 4 months ago (2015-12-22 11:50:44 UTC) #4
git
https://codereview.appspot.com/276560043/diff/20001/Documentation/snippets/subdividing-beams.ly File Documentation/snippets/subdividing-beams.ly (right): https://codereview.appspot.com/276560043/diff/20001/Documentation/snippets/subdividing-beams.ly#newcode7 Documentation/snippets/subdividing-beams.ly:7: %% Note: this file works from version 2.19.34 So ...
8 years, 4 months ago (2015-12-22 18:34:43 UTC) #5
Trevor Daniels
On 2015/12/22 18:34:43, git wrote: > https://codereview.appspot.com/276560043/diff/20001/Documentation/snippets/subdividing-beams.ly > File Documentation/snippets/subdividing-beams.ly (right): > > https://codereview.appspot.com/276560043/diff/20001/Documentation/snippets/subdividing-beams.ly#newcode7 > ...
8 years, 4 months ago (2015-12-22 19:51:18 UTC) #6
c_sorensen
Copy the snippet to Documentation/snippets/new. Remove the machine-generated header. Make your changes. Submit the patch. ...
8 years, 4 months ago (2015-12-22 19:51:56 UTC) #7
git
Revert changes to snippets file
8 years, 4 months ago (2015-12-23 07:59:26 UTC) #8
dak
On 2015/12/23 07:59:26, git wrote: > Revert changes to snippets file At the current point ...
8 years, 4 months ago (2015-12-23 09:06:56 UTC) #9
git
Simplify code by cleaning up "old" code
8 years, 4 months ago (2015-12-23 13:34:56 UTC) #10
git
8 years, 4 months ago (2015-12-23 13:37:10 UTC) #11
Add commit with updated doc snippet
Sign in to reply to this message.

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