lilypond-user
[Top][All Lists]
Advanced

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

Re: scheme markup macros


From: Han-Wen Nienhuys
Subject: Re: scheme markup macros
Date: Tue, 10 May 2005 13:34:22 +0200
User-agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324)

Graham Percival 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 }
}

No, it would require new code in parser.yy - but it is an intriguing idea that I'm willing to consider.

--
 Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

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