lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting there with musica ficta


From: Nicolas Sceaux
Subject: Re: Getting there with musica ficta
Date: Tue, 24 Feb 2004 17:52:10 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]