lilypond-user
[Top][All Lists]
Advanced

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

Re: scheme markup macros


From: Jonatan Liljedahl
Subject: Re: scheme markup macros
Date: Tue, 10 May 2005 09:53:43 -0300

On Mon, 09 May 2005 19:41:46 -0700
Graham Percival <address@hidden> wrote:

> Is it possible to define a \markup macro that looks like a lilypond 
> command?
> 
> This produces the output I want:
> 
> \version "2.5.23"
> #(def-markup-command (tempoMark layout props str) (markup?)
>    (interpret-markup layout props
>      (markup #:bold #:large str)))
> \relative c'' {
>    c4^\markup{ \tempoMark Allegro }
> }
> 
> I'm wondering if I can alter the syntax so the command is used like 
> this:
> 
> \relative c'' {
>    c4^\tempoMark{ Allegro }
> }

You can include lilypond code with #{ and #}, and also insert arguments
therein. See the manual for more details, it's in the end of the manual,
about scheme expressions, etc...

/Jonatan    -=( http://kymatica.com )=-




reply via email to

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