Hi Urs,

or you define an event-function, as that is what you want in the end:

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

\version "2.18.2"

% I only have stable here right now ...


playing =

#(define-event-function (parser location text)(markup?)

#{ -\markup { \italic \with-color #blue #text } #})


%%

{ c''4 c''\playing "lonly" }

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

HTH
Best, Jan-Peter

On 28.08.2014 02:07, Paul Morris wrote:
> Hi Urs,  
> I would just use a scheme function, as follows.  Does it do what you want? 
> Cheers,
> -Paul
>
>
> \version "2.19.11"
>
> myFunction =
> #(define-scheme-function (parser location text) (markup?)
>    #{
>      \markup \italic \with-color #(x11-color "blue") #text
>    #})
>
> pizz = \myFunction "pizz"
>
> {
>   c'1
>   c'-\myFunction "foo"
>   c'-\pizz
> }
>
>
>
>
> --
> View this message in context: 
> http://lilypond.1069038.n5.nabble.com/Feeling-stupid-about-markup-functions-tp165849p165852.html
> Sent from the User mailing list archive at Nabble.com.
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to