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

Issue 212048: Better support for beat slashes (multi-slash & mixed duration). (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 2 months ago by Neil Puttock
Modified:
13 years, 2 months ago
Reviewers:
Graham Percival (old account), carl.d.sorensen
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Better support for beat slashes (multi-slash & mixed duration). * lily/context.cc: add repeat count visibility proc for use in percent repeat engravers * lily/double-percent-repeat-engraver.cc (new file): create separate engraver for double-measure percent repeats, which listens to DoublePercentEvent * lily/percent-repeat-engraver.cc: listen to PercentEvent and create single-measure repeats only * lily/percent-repeat-item.cc: (brew_slash): add count arg to set number of slashes * lily/percent-repeat-iterator.cc (get_music_list): send separate synthetic events for percent, double-percent and beat repeats use measure length to choose between full-measure types call scheme proc to get slash count for beat repeats * lily/slash-repeat-engraver.cc: listen to RepeatSlashEvent and use slash-count to switch between RepeatSlash and DoublePercentRepeat * ly/engraver-init.ly: add Double_percent_repeat_engraver to Voice context * scm/define-event-classes.scm (event-classes): add new classes (double-percent-event/repeat-slash-event) * scm/define-grob-interface.scm (percent-repeat-interface): add slash-count for use by RepeatSlash * scm/define-grob-properties.scm (all-internal-grob-properties): doc slash-count * scm/define-grobs.scm (all-grob-descriptions): set slash-negative-kern in RepeatSlash (required for multi-slash beat repeats) * scm/define-music-properties.scm (all-music-properties): doc slash-count * scm/define-music-types.scm (music-descriptions): add synthetic events DoublePercentEvent and RepeatSlashEvent * scm/music-functions.scm (calc-repeat-slash-count): new function used by Percent_repeat_iterator to check durations; returns either number of slashes (if all durations equal) or 0 (if durations vary)

Patch Set 1 #

Patch Set 2 : Minor rebase. #

Patch Set 3 : Various improvements. #

Patch Set 4 : Fix percent repeat alignment. #

Patch Set 5 : Add regression tests. #

Patch Set 6 : Another rebase (+ rework calc-repeat-slash-count) #

Total comments: 1

Patch Set 7 : Nitpicks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -185 lines) Patch
A input/regression/repeat-slash-mixed.ly View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
A input/regression/repeat-slash-multi.ly View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M lily/context.cc View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
A lily/double-percent-repeat-engraver.cc View 1 2 3 4 5 6 1 chunk +113 lines, -0 lines 0 comments Download
M lily/include/context.hh View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M lily/include/percent-repeat-item.hh View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M lily/multi-measure-rest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M lily/percent-repeat-engraver.cc View 1 2 3 4 5 6 7 chunks +50 lines, -131 lines 0 comments Download
M lily/percent-repeat-item.cc View 1 2 3 4 5 6 6 chunks +23 lines, -13 lines 0 comments Download
M lily/percent-repeat-iterator.cc View 1 2 3 4 5 6 2 chunks +24 lines, -3 lines 0 comments Download
M lily/slash-repeat-engraver.cc View 1 2 3 4 5 6 5 chunks +14 lines, -26 lines 0 comments Download
M ly/engraver-init.ly View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M scm/define-event-classes.scm View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M scm/define-grobs.scm View 1 2 3 4 5 6 3 chunks +15 lines, -1 line 0 comments Download
M scm/define-music-properties.scm View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M scm/define-music-types.scm View 1 2 3 4 5 6 3 chunks +11 lines, -1 line 0 comments Download
M scm/music-functions.scm View 1 2 3 4 5 6 2 chunks +26 lines, -6 lines 0 comments Download

Messages

Total messages: 6
Neil Puttock
Hi everybody, You might remember this patch from a while ago. :) I've dusted it ...
13 years, 8 months ago (2010-08-25 21:22:26 UTC) #1
Graham Percival (old account)
Looks excellent, but -- what's a double slash? :) http://codereview.appspot.com/212048/diff/64001/lily/percent-repeat-iterator.cc File lily/percent-repeat-iterator.cc (right): http://codereview.appspot.com/212048/diff/64001/lily/percent-repeat-iterator.cc#newcode58 lily/percent-repeat-iterator.cc:58: ...
13 years, 3 months ago (2011-01-22 20:25:03 UTC) #2
Graham Percival (old account)
On 2011/01/22 20:25:03, Graham Percival wrote: > Looks excellent, but -- what's a double slash? ...
13 years, 3 months ago (2011-01-22 20:29:17 UTC) #3
Neil Puttock
On 2011/01/22 20:29:17, Graham Percival wrote: > Patch looks great, passes regtests, and I built ...
13 years, 2 months ago (2011-01-23 23:17:28 UTC) #4
Carl
LGTM. Carl
13 years, 2 months ago (2011-01-24 02:20:06 UTC) #5
Graham Percival (old account)
13 years, 2 months ago (2011-02-10 18:07:15 UTC) #6
No complaints, and I just double-checked that the regtest is ok.  Please push.
Sign in to reply to this message.

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