lilypond-user
[Top][All Lists]
Advanced

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

Re: function with markup


From: Janek Warchoł
Subject: Re: function with markup
Date: Fri, 24 May 2013 18:18:42 +0200

hi,

2013/5/24 luis jure <address@hidden>
> i wrote the following expecting that it would work, but it didn't:
>
> \version "2.17.18"
> tiempo = #(define-music-function (parser location secs) (string?)
>        #{ \markup { \hspace #-1.6 \lower #3 \sans #secs } #})
>
> { c''4\tiempo "1" }
>
>
> reading the documentation i found something that i could adapt, and i came
> up with this:
>
> \version "2.17.18"
> tiempo = #(define-music-function (parser location secs) (string?)
>        #{ <>_\markup { \hspace #-1.6 \lower #3 \sans #secs } #})
>
> { \tiempo "1" c''4 }
>
> now, that *does* work, but i don't understand why it does nor why the first
> example doesn't. is there anything in the documentation that i should read
> more carefully to understand this?

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" }

best,
Janek



reply via email to

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