lilypond-user
[Top][All Lists]
Advanced

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

Re: function with markup


From: David Kastrup
Subject: Re: function with markup
Date: Sat, 25 May 2013 04:25:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> Janek Warchoł <address@hidden> writes:
>
>> I don't know how to explain this accurately, but maybe seeing this
>> variation will help you get an idea what's happening:
>>
>> tiempo = #(define-music-function (parser location secs) (string?)
>>          #{ _\markup { \hspace #-1.6 \lower #3 \sans #secs } #})
>>
>> { c''4-\tiempo "1" }
>
> Since tiempo will never return anything but a "post-event", there is no
> point in using define-music-function rather than define-event-function
> here.  With define-event-function, c''4\tiempo "1" will be acceptable as
> well.
>
> Incidentally: you know that the normal \tempo command can be given just
> a string?

Or, indeed, a full markup.

> It would probably make sense to base your command on a variation of
> that.

-- 
David Kastrup




reply via email to

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