Jonathan

The source for add-grace-property is in scm/music-functions.scm.
The function does not simply set a value in 'direction - it
appends an entry to a list.
At the head of the function is a TODO:

;; TODO:  make a remove-grace-property too.

Looks like this has never been implemented.

Trevor

----- Original Message ----- From: "Jonathan Kulp" <[EMAIL PROTECTED]>
To: <lilypond-user@gnu.org>
Sent: Monday, August 11, 2008 5:07 PM
Subject: GDP: Rhythms: add-grace-property


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


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to