[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Issue 1264 in lilypond: Enhancement: defining dynamics on-the-fly (with
From: |
lilypond |
Subject: |
Issue 1264 in lilypond: Enhancement: defining dynamics on-the-fly (with postfix syntax) |
Date: |
Fri, 17 Sep 2010 13:39:14 +0000 |
Status: Accepted
Owner: v.villenave
Labels: Type-Enhancement Priority-Low Patch Syntax
New issue 1264 by v.villenave: Enhancement: defining dynamics on-the-fly
(with postfix syntax)
http://code.google.com/p/lilypond/issues/detail?id=1264
Whilst it currently is possible to define new dynamics and attach them to
notes, it cannot be done on-the-fly, eg.
c1 \dynamic sffz
This is partly because the only way to pass a a text argument is by using a
music-function, thereby forbidding postfix commands. In the following
pseudo-example, the dynamic will be attached to the next note instead of
the previous one :
c1 \dynamic #"sffz" d
A workaround is to use a dash before the Scheme-defined command:
c1 -\dynamic #"sffz"
However, it's not an ideal solution. Implementing this more cleanly would
require a parser modification, or, as David suggested, implement the
ability to define postfix music-functions.
The discussion (and a patch) may be found on
http://lists.gnu.org/archive/html/lilypond-devel/2010-09/msg00148.html
See also related topics like issue 1066; LilyPond syntax will become much
more consistent as we move to postfix functions everywhere it makes sense.
- Issue 1264 in lilypond: Enhancement: defining dynamics on-the-fly (with postfix syntax),
lilypond <=