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

Issue 200860043: Issues 4245 and 4275: User-defined rest styles

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 3 months ago by Dan Eble
Modified:
9 years, 2 months ago
Reviewers:
Keith
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Allow user-defined rest styles. https://code.google.com/p/lilypond/issues/detail?id=4275 Let custom stencils affect spacing. https://code.google.com/p/lilypond/issues/detail?id=4245 This is complicated by having to choose between ledgered and unledgered glyphs based on the position of the rest on the staff. The default stencil for rests is an now unpure-pure property. This is not enough on its own. To avoid a cyclic dependency in the evaluation of the unpure stencil during positioning by Rest_collision, some rather complicated code (I feel "unpure" for having written it) caches/uses the pure stencil in the internal property stencil-pure. Rests in TabStaff are now hidden instead of having their stencils set to #f to keep regression tests passing after changes to rest stencil handling.

Patch Set 1 #

Patch Set 2 : Eureka. Allow overriding stencil alone. (fixes 4245) #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -100 lines) Patch
M input/regression/rest-dot-position.ly View 1 chunk +3 lines, -0 lines 2 comments Download
M input/regression/rest-note-collision.ly View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/include/rest.hh View 1 1 chunk +6 lines, -4 lines 0 comments Download
M lily/multi-measure-rest.cc View 2 chunks +2 lines, -5 lines 0 comments Download
M lily/rest.cc View 1 7 chunks +79 lines, -88 lines 4 comments Download
M ly/engraver-init.ly View 1 chunk +1 line, -1 line 2 comments Download
M ly/property-init.ly View 1 chunk +1 line, -1 line 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 +1 line, -1 line 0 comments Download
M scm/lily.scm View 1 chunk +1 line, -0 lines 0 comments Download
A scm/rest.scm View 1 1 chunk +72 lines, -0 lines 0 comments Download

Messages

Total messages: 7
Dan Eble
9 years, 3 months ago (2015-01-29 01:36:58 UTC) #1
Dan Eble
Keith mentioned recently, "The similar issue with Accidentals (issue 3646) was not so bad." This ...
9 years, 3 months ago (2015-01-29 14:22:18 UTC) #2
Dan Eble
Eureka. Allow overriding stencil alone. (fixes 4245)
9 years, 3 months ago (2015-01-30 04:39:21 UTC) #3
Keith
Looks pretty good. The change to tabstaff looks suspicious the way you describe it. Keeping ...
9 years, 3 months ago (2015-01-31 06:02:50 UTC) #4
Dan Eble
Thanks for taking a close look. I will experiment with the positioning-done callback. I will ...
9 years, 2 months ago (2015-01-31 22:49:29 UTC) #5
Keith
On Sat, 31 Jan 2015 14:49:29 -0800, <nine.fierce.ballads@gmail.com> wrote: > https://codereview.appspot.com/200860043/diff/20001/lily/rest.cc#newcode166 > lily/rest.cc:166: + offset); ...
9 years, 2 months ago (2015-02-01 04:27:54 UTC) #6
Dan Eble
9 years, 2 months ago (2015-02-02 23:29:04 UTC) #7
On 2015/02/01 04:27:54, Keith wrote:
> > This patch only solves issue 4245 for users who know how to put their custom
> rest stencil in a pure-unpure-container.

What I intended was that the stencil may optionally be in a pure-unpure
container, but if it is not, it is assumed to be pure and evaluated.
Sign in to reply to this message.

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