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

Issue 259080043: Let \autochange accept optional arguments for the turning-point and clefs (Closed)

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

Description

Let \autochange accept optional arguments for the turning-point and clefs Issue whatever With the fix for issue 4465 bassStaffProperties and trebleStaffProperties are gone. This patch reimplements the functionality to set clefs for the staves and offers the possibility to set another turning-point apart from middle-C. This is done with optional arguments for \autochange. The regtest auto-change.ly is extended to reflect these possibilities as well as Documentation/notation/keyboards.itely Also inserting the usual remarks about license, etc

Patch Set 1 #

Patch Set 2 : insert correct issue number into commit-message #

Total comments: 13

Patch Set 3 : Adressing Dans and Davids comments #

Patch Set 4 : Davids suggestion, thanks a lot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -29 lines) Patch
M Documentation/notation/keyboards.itely View 1 2 2 chunks +16 lines, -1 line 0 comments Download
A input/regression/autochange-clefs.ly View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A input/regression/autochange-turning-pitch.ly View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M ly/music-functions-init.ly View 1 2 2 chunks +21 lines, -22 lines 0 comments Download
M scm/autochange.scm View 1 2 3 4 chunks +25 lines, -6 lines 0 comments Download

Messages

Total messages: 9
thomasmorley651
insert correct issue number into commit-message
8 years, 8 months ago (2015-07-30 20:10:17 UTC) #1
thomasmorley651
Please review. It's a pity that obviously putting something like #{ c' #} or #{ ...
8 years, 8 months ago (2015-07-30 20:21:40 UTC) #2
Dan Eble
https://codereview.appspot.com/259080043/diff/20001/Documentation/notation/keyboards.itely File Documentation/notation/keyboards.itely (right): https://codereview.appspot.com/259080043/diff/20001/Documentation/notation/keyboards.itely#newcode294 Documentation/notation/keyboards.itely:294: If the staves are not instantiated explicitely other clefs ...
8 years, 8 months ago (2015-07-31 00:01:20 UTC) #3
dak
https://codereview.appspot.com/259080043/diff/20001/ly/music-functions-init.ly File ly/music-functions-init.ly (right): https://codereview.appspot.com/259080043/diff/20001/ly/music-functions-init.ly#newcode189 ly/music-functions-init.ly:189: (ly:context-mod? #{ \with { Write (ly:context-mod?) here and (or ...
8 years, 8 months ago (2015-07-31 05:12:05 UTC) #4
thomasmorley651
Adressing Dans and Davids comments
8 years, 8 months ago (2015-07-31 10:38:38 UTC) #5
thomasmorley651
Thanks Dan and David for review https://codereview.appspot.com/259080043/diff/20001/Documentation/notation/keyboards.itely File Documentation/notation/keyboards.itely (right): https://codereview.appspot.com/259080043/diff/20001/Documentation/notation/keyboards.itely#newcode294 Documentation/notation/keyboards.itely:294: If the staves ...
8 years, 8 months ago (2015-07-31 10:42:38 UTC) #6
dak
https://codereview.appspot.com/259080043/diff/20001/scm/autochange.scm File scm/autochange.scm (right): https://codereview.appspot.com/259080043/diff/20001/scm/autochange.scm#newcode36 scm/autochange.scm:36: (cond ((ly:pitch<? ref-pitch pitch) On 2015/07/31 10:42:38, thomasmorley651 wrote: ...
8 years, 8 months ago (2015-07-31 10:57:07 UTC) #7
thomasmorley651
Davids suggestion, thanks a lot
8 years, 8 months ago (2015-07-31 11:06:32 UTC) #8
thomasmorley651
8 years, 8 months ago (2015-07-31 11:16:28 UTC) #9
On 2015/07/31 10:57:07, dak wrote:
> https://codereview.appspot.com/259080043/diff/20001/scm/autochange.scm
> File scm/autochange.scm (right):
> 
>
https://codereview.appspot.com/259080043/diff/20001/scm/autochange.scm#newcode36
> scm/autochange.scm:36: (cond ((ly:pitch<? ref-pitch pitch)
> On 2015/07/31 10:42:38, thomasmorley651 wrote:
> > On 2015/07/31 00:01:20, Dan Eble wrote:
> > > would ly:pitch-diff simplify this?
> > 
> > I was not happy with this nested if/cond either, but I don't see how
> > ly:pitch-diff would help.
> > 
> > At least I managed to shorten it a bit in the newest patch-set
> 
> Well, it does not appear to make sense to even look at the alteration here. 
And
> the original code doesn't do it either.  You could just use
> (dir (if pitch (sign (- (ly:pitch-steps pitch) (ly:pitch-steps ref-pitch)))
0))
> which is actually pretty close to the original.

Much better, thanks.
Done.
Sign in to reply to this message.

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