[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GDP: Rhythms: add-grace-property
From: |
Jonathan Kulp |
Subject: |
GDP: Rhythms: add-grace-property |
Date: |
Mon, 11 Aug 2008 11:07:34 -0500 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080724) |
I'm working on the Rhythms section of Notation Reference for GDP, and
I'm having trouble making "add-grace-property" work as described in this
passage from Notation Reference 1.2.6.1:
"The layout of grace expressions can be changed throughout the
music using the function @code{add-grace-property}. The following
example undefines the @code{Stem} direction for this grace, so
that stems do not always point up."
@example
\new Staff @{
#(add-grace-property 'Voice 'Stem 'direction '())
@dots{}
@}
@end example
Since we're trying to get rid of @example passages and use real musical
examples instead, I tried to make it work with music. Here's the code I
used and the non-fatal error message that followed.
\relative c'' {
\new Staff {
% #(add-grace-property 'Voice 'Stem 'direction #'down)
#(add-grace-property 'Voice 'Stem 'direction '())
\new Voice {
\acciaccatura {
f16
}
g4
}
}
}
Parsing...
Interpreting music...
Preprocessing graphical objects...
programming error: Stem dir must be up or down.
continuing, cross fingers
Finding the ideal number of pages...
So it looks like it won't accept '() as a valid argument. I tried using
#'() and it said "illegal empty combination"
The only way I could get it to change the stem direction was to replace
"'()" with "#'down" (commented out in the code above), but the whole
point of that example was to make the grace-note stems have no
predetermined direction.
Does anyone see what the problem is? I guess this is why we're removing
@example examples :)
Jon
--
Jonathan Kulp
http://www.jonathankulp.com
- GDP: Rhythms: add-grace-property,
Jonathan Kulp <=