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

Issue 4819064: Make accidental styles available as context mods. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by Neil Puttock
Modified:
12 years, 2 months ago
Reviewers:
pkx166h, Keith, dak, Reinhold
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Make accidental styles available as context mods. * lily/context-mod-scheme.cc (ly_make_context_mod): add exported function to create new context mod, either empty or with optional init list * lily/context-mod.cc, lily/include/context-mod.hh: add ctor which takes modification list * lily/parser.yy (context_def_spec_body): ignore `description' tag when adding context modification to prevent its overwriting \description inside engraver-init.ly * ly/context-mods-init.ly: define all accidental styles as context modifications via helper function * ly/engraver-init.ly (Score, MensuralStaff): use context mod definitions for accidental style settings * scm/music-functions.scm (set-accidental-style): move styles to alist (all-accidental-styles), adding documentation strings

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -171 lines) Patch
M lily/context-mod.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M lily/context-mod-scheme.cc View 3 chunks +15 lines, -4 lines 1 comment Download
M lily/include/context-mod.hh View 1 chunk +1 line, -0 lines 0 comments Download
M lily/parser.yy View 1 chunk +3 lines, -1 line 1 comment Download
M ly/context-mods-init.ly View 1 chunk +44 lines, -1 line 2 comments Download
M ly/engraver-init.ly View 2 chunks +3 lines, -8 lines 0 comments Download
M scm/music-functions.scm View 1 chunk +154 lines, -157 lines 1 comment Download

Messages

Total messages: 15
Neil Puttock
Hi, This patch adds context modification identifiers for all supported accidental styles. This should make ...
12 years, 8 months ago (2011-08-07 15:01:33 UTC) #1
Neil Puttock
http://codereview.appspot.com/4819064/diff/1/scm/music-functions.scm File scm/music-functions.scm (right): http://codereview.appspot.com/4819064/diff/1/scm/music-functions.scm#newcode1267 scm/music-functions.scm:1267: Staff ,(make-accidental-rule 'same-octave 0) As Carl's pointed out here, ...
12 years, 8 months ago (2011-08-14 22:35:19 UTC) #2
pkx166h
passes make and reg tests
12 years, 7 months ago (2011-08-28 10:07:16 UTC) #3
Reinhold
LGTM. http://codereview.appspot.com/4819064/diff/1/lily/parser.yy File lily/parser.yy (right): http://codereview.appspot.com/4819064/diff/1/lily/parser.yy#newcode670 lily/parser.yy:670: continue; What exactly is the reason for this ...
12 years, 7 months ago (2011-09-05 16:21:43 UTC) #4
Carl
It's hard for me to track all of this carefully, but I much prefer the ...
12 years, 7 months ago (2011-09-05 16:29:01 UTC) #5
dak
http://codereview.appspot.com/4819064/diff/1/lily/context-mod-scheme.cc File lily/context-mod-scheme.cc (right): http://codereview.appspot.com/4819064/diff/1/lily/context-mod-scheme.cc#newcode45 lily/context-mod-scheme.cc:45: LY_DEFINE (ly_make_context_mod, "ly:make-context-mod", Can you map this to #{ ...
12 years, 7 months ago (2011-09-05 16:29:08 UTC) #6
Neil Puttock
On 5 September 2011 17:21, <reinhold.kainhofer@gmail.com> wrote: > LGTM. Thank you. :) > http://codereview.appspot.com/4819064/diff/1/lily/parser.yy > ...
12 years, 7 months ago (2011-09-05 18:30:36 UTC) #7
Neil Puttock
On 5 September 2011 17:29, <Carl.D.Sorensen@gmail.com> wrote: > It's hard for me to track all ...
12 years, 7 months ago (2011-09-05 18:33:36 UTC) #8
Neil Puttock
On 5 September 2011 17:29, <dak@gnu.org> wrote: > > http://codereview.appspot.com/4819064/diff/1/lily/context-mod-scheme.cc > File lily/context-mod-scheme.cc (right): > ...
12 years, 7 months ago (2011-09-05 18:47:01 UTC) #9
Keith
Neil, don't forget to push this. I've been looking forward to it.
12 years, 6 months ago (2011-10-20 04:06:03 UTC) #10
dak
Sorry, I always start thinking only when far too late in the game. Anyway, here ...
12 years, 6 months ago (2011-10-20 05:44:38 UTC) #11
Neil Puttock
On 2011/10/20 04:06:03, Keith wrote: > Neil, don't forget to push this. > I've been ...
12 years, 6 months ago (2011-10-20 12:57:21 UTC) #12
Neil Puttock
On 2011/10/20 05:44:38, dak wrote: > Sorry, I always start thinking only when far too ...
12 years, 6 months ago (2011-10-20 13:04:33 UTC) #13
dak
n.puttock@gmail.com writes: > On 2011/10/20 05:44:38, dak wrote: >> Sorry, I always start thinking only ...
12 years, 6 months ago (2011-10-21 10:23:07 UTC) #14
Neil Puttock
12 years, 6 months ago (2011-10-21 10:36:57 UTC) #15
On 20 October 2011 15:01, David Kastrup <dak@gnu.org> wrote:

> I think the current state of dev/syntax should be committable.  It has
> no problems accepting context modifications.  The function signature of
> ((string? "Bottom") ly:context-mod?) should work just fine for accepting
> an optional context string defaulting to "Bottom" and a mandatory
> context modification.

The default context would be "Staff".  There's some code to switch to
GrandStaff for the piano styles.

Cheers,
Neil
Sign in to reply to this message.

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