lilypond-user
[Top][All Lists]
Advanced

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

Re: How to glue markup with parameter passed note indefine-music-functio


From: Gilles THIBAULT
Subject: Re: How to glue markup with parameter passed note indefine-music-function environment?
Date: Wed, 3 Feb 2010 22:25:25 +0100


how to achieve
$note_\markup{ s }
in define-music-function definition.. because $note_ can't be parsed correctly.

Well, you can try this work-around with a \skip and a <<>> construct.

%%%%%%%%%%%%%
fun = #(define-music-function (parser location note)(ly:music?)
#{
<< $note s1*0_\markup { s } >>
#})

\new Voice { \fun c' }

%%%%%%%%%%%%%

For a more advanced function, you'll have to use scheme.
See http://lsr.dsi.unimi.it/LSR/Item?id=82 for example.

Gilles





reply via email to

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