Mon, 23 Feb 2004 23:55:32 +0100 (CET), Reuben a dit :
> OK, I'm nearly there, my remaining problems are Scheme problems I think (I
> know a bit of elisp, but no Scheme up to now).
> I have the following:
> #(def-markup-command (fictasharp) () "Foo" (#:musicglyph "accidentals-2"))
> which doesn't parse. I think the problem is my empty argument type list.
> ??
Here is a working definition:
#(def-markup-command (fictasharp paper props) ()
"Foo"
(interpret-markup paper props
(markup #:musicglyph "accidentals-2")))
Note that the `paper' and `props' arguments are mandatory. Besides, you
have to use the `markup' macro before using (#:musicglyph ...). See
http://lilypond.org/doc/v2.1/Documentation/user/out-www/lilypond/Markup-command-definition.html
Besides, this is exactly the definition of the \sharp markup command.
\score { \notes { c''^\markup\sharp } }
Now, it may still be too verbose, then you can define a shortcut, for
instance:
fictsharp=\markup\smaller\sharp
\score { \notes { c''^\fictsharp } }
nicolas
_______________________________________________
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user