|
From: | Jan-Peter Voigt |
Subject: | Re: Feeling stupid about markup functions |
Date: | Thu, 28 Aug 2014 08:27:14 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.0 |
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" } %%%%%%%%%%%%%%%%%%% 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 address@hidden https://lists.gnu.org/mailman/listinfo/lilypond-user |
[Prev in Thread] | Current Thread | [Next in Thread] |