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

Issue 176180043: Issue 4204: Convert ly::time-signature::print from C++ to Scheme. (Closed)

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

Description

Issue 4204: Convert ly::time-signature::print from C++ to Scheme. The user may add a new time signature style by calling add-simple-time-signature-style and providing a procedure returning markup.

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -212 lines) Patch
M input/regression/time-signature-mensural.ly View 1 chunk +4 lines, -4 lines 0 comments Download
A input/regression/time-signature-user-defined.ly View 1 chunk +22 lines, -0 lines 2 comments Download
D lily/include/time-signature.hh View 1 chunk +0 lines, -41 lines 0 comments Download
M lily/slur-scoring.cc View 2 chunks +1 line, -2 lines 0 comments Download
D lily/time-signature.cc View 1 chunk +0 lines, -164 lines 0 comments Download
M lily/time-signature-engraver.cc View 1 chunk +0 lines, -1 line 0 comments Download
M scm/define-grob-interfaces.scm View 1 chunk +18 lines, -0 lines 0 comments Download
M scm/lily.scm View 1 chunk +1 line, -0 lines 0 comments Download
A scm/time-signature.scm View 1 chunk +35 lines, -0 lines 0 comments Download
M scm/time-signature-settings.scm View 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 3
Dan Eble
This is the real thing. Have at it.
9 years, 5 months ago (2014-11-22 16:18:40 UTC) #1
Dan Eble
Rebase
9 years, 4 months ago (2014-12-02 00:46:43 UTC) #2
Keith
9 years, 4 months ago (2014-12-08 06:30:23 UTC) #3
Looks good.
Having the built-in time signature markup in Scheme, available as
building-blocks for custom time signatures, will probably be useful for several
people.
You might just leave out the regression test.

https://codereview.appspot.com/176180043/diff/20001/input/regression/time-sig...
File input/regression/time-signature-user-defined.ly (right):

https://codereview.appspot.com/176180043/diff/20001/input/regression/time-sig...
input/regression/time-signature-user-defined.ly:7:
#(add-simple-time-signature-style 'topsy-turvy
Normal use of TimeSignature tests add-simple-time-signature, so we don't really
need another regression test to look at every time a new version comes out.
This is more documentation than test.  If you can put this in the LSR as a
documentation snippet, then later you could just remove this regression test.

https://codereview.appspot.com/176180043/diff/20001/input/regression/time-sig...
input/regression/time-signature-user-defined.ly:16: \override
Score.TimeSignature.style = #'topsy-turvy
At first I didn't like making an example of overriding the 'style, when we can
already override the 'stencil, and learning to override the stencil is more
general (using grob-interpret-markup instead of learning how
add-simple-time-signature works) but I got over it.
Sign in to reply to this message.

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