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

Issue 2220041: [Patch] Absolute dynamics as postfix text (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by Valentin Villenave
Modified:
12 years, 9 months ago
Reviewers:
dak, Graham Percival (old account), Neil Puttock, c_sorensen, lilypond-devel, carl.d.sorensen
CC:
valentin_villenave.net
Visibility:
Public.

Description

Absolute dynamics as postfix text This commit adds a \dynamic command to the parser, which allows for straightforward dynamics such as sffz = \dynamic sffz or c1 \dynamic "mp,_molto intenso" etc. This could not be implemented purely using Scheme, as the only way to pass an argument is by using a music-function, thereby forbidding postfix commands. The upside with this parser modification is that it acts as a drop-in replacement for the way absolute-dynamic-events were previously handled. make-dynamic-script has been updated accordingly, as well as the documentation and the regtests (the only thing left to implement is a suitable display-method). \dynamic is also used as a markup command, but since the new command lives in a different scope there is no conflict AFAICS. A new dynamic-string markup command has also been added, in order to parse the string argument given to \dynamic. This command accepts plain dynamics as well as text indications and composite indications mixing dynamics, text and punctuation.

Patch Set 1 #

Total comments: 3

Patch Set 2 : Doc compile fix #

Patch Set 3 : Compile fix #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -22 lines) Patch
M Documentation/notation/expressive.itely View 1 3 chunks +28 lines, -20 lines 2 comments Download
A input/regression/dynamics-text-postfix.ly View 1 chunk +21 lines, -0 lines 0 comments Download
M lily/lily-lexer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M lily/parser.yy View 4 chunks +10 lines, -0 lines 0 comments Download
M ly/dynamic-scripts-init.ly View 1 chunk +10 lines, -2 lines 1 comment Download
scm/define-markup-commands.scm View 1 chunk +51 lines, -0 lines 0 comments Download
scm/font.scm View 1 chunk +9 lines, -0 lines 0 comments Download
scm/ly-syntax-constructors.scm View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 8
Valentin Villenave
Greetings everybody, This is probably not the kind of things anyone wants to see right ...
13 years, 7 months ago (2010-09-15 13:39:41 UTC) #1
Graham Percival (old account)
Initial comments, not a complete review. BTW, these files just say "upload in progress". Could ...
13 years, 7 months ago (2010-09-15 14:05:40 UTC) #2
Valentin Villenave
On 2010/09/15 14:05:40, Graham Percival wrote: > Initial comments, not a complete review. BTW, these ...
13 years, 7 months ago (2010-09-15 14:13:58 UTC) #3
Carl
I like what you're doing here. I have a couple of comments on the regtests, ...
13 years, 7 months ago (2010-09-15 16:50:02 UTC) #4
c_sorensen
On 9/15/10 8:13 AM, "v.villenave@gmail.com" <v.villenave@gmail.com> wrote: > On 2010/09/15 14:05:40, Graham Percival wrote: >> ...
13 years, 7 months ago (2010-09-15 17:04:07 UTC) #5
Neil Puttock
Hi Valentin, I like the markup command, but I don't see the need for adding ...
13 years, 7 months ago (2010-09-15 20:08:15 UTC) #6
dak
The following message is a courtesy copy of an article that has been posted to ...
13 years, 7 months ago (2010-09-15 20:39:19 UTC) #7
valentin_villenave.net
13 years, 7 months ago (2010-09-17 13:01:09 UTC) #8
On Wed, Sep 15, 2010 at 10:08 PM,  <n.puttock@gmail.com> wrote:
> What's wrong with the following?
> moltoF = -\myDynamic "molto_f"

Hi Neil,
Duh. Had I thought of that, I might actually not have gone down this road :-)

> OK, so this isn't as clean a solution (and might confuse users who don't
> understand the distinction between parser keywords and music function
> identifiers), but it works fine.  It's good enough for things like
> \tweak and \bendAfter so why make dynamics a special case?

Indeed. However, I think you'll agree with me that it doesn't help
make the input syntax consistent: having to choose between postfix and
prefix notation, dash- or dashless commands, string arguments that
require double quotes, a hash or whatnot.

Such discussions surely can (and will) be delayed until GLISS. Looking
forward to it, actually ;)

In the meantime, I've opened
http://code.google.com/p/lilypond/issues/detail?id=1264

Cheers,
Valentin
Sign in to reply to this message.

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