lilypond-user
[Top][All Lists]
Advanced

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

Re: define-music-function help


From: Nicolas Sceaux
Subject: Re: define-music-function help
Date: Sat, 08 Apr 2006 21:10:40 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin)

"Allan Spagnol Comar" <address@hidden> writes:

> Hi list, I am trying to generate a music-function to make
> ^\markup { \musicglyph #"timesig.C44" \vcenter "1" }
> for me any time, and the function should receive a string to be placed
> where "1" is writed. Is this possible ? if it is how can I do it ? or
> where can I find documentation about it ?

Music functions are used to build music expression.
Here you want to build a markup expression: define a markup command.

#(define-markup-command (myCommand layout props arg) (string?)
  (interpret-markup layout props (markup #:musicglyph "timesig.C44" #:vcenter 
arg)))

{
  c'-\markup \myCommand #"foo"
}

nicolas





reply via email to

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