On 10-May-05, at 5:53 AM, Jonatan Liljedahl wrote:
On Mon, 09 May 2005 19:41:46 -0700 Graham Percival <[EMAIL PROTECTED]> wrote:
Is it possible to define a \markup macro that looks like a lilypond command?
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...
Yes, I'm aware that the manual has a chapter about scheme.
None of the scheme examples that I've seen (in the manual, input/test, input/regression, or LSR) look like lilypond commands. They all use \applymusic, \applyoutput, \foo #x { c4 }, or \markup{ \foo }.
In addition, I'm not certain that lilypond's architecture allows for unattached ^\markup{}s to be floating around. Assuming my desire is even possible, the scheme function would need to return
\markup{ \bold foobar }
to attach it to the c4^\schemefunction{ foobar }
I suspect the answer to my question is no; that
c4^\markup{ \schemefunction foobar }
is the best way to do what I want. However, I'm not certain; hence my question.
Cheers - Graham Percival, LilyPond Documentation Editor
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user