Thanks, Kieren.

I'm not sure I understand, and I don't have LilyPond on this computer, so
I'm going to have to evaluate later.

Ralph

On Tue, Dec 16, 2008 at 10:38 AM, Kieren MacMillan <
kieren_macmil...@sympatico.ca> wrote:

> Hi Ralph,
>
>  I don't always have a meter or composer, but I think I know how to deal
>> with that.
>> With some help from Valentin, I've come close, using his suggestion:
>>
>> \paper{
>>  scoreTitleMarkup = \markup { \column {
>>     \fill-line {
>>       \fromproperty #'header:meter
>>       \fromproperty #'header:poet
>>     }
>>   }
>>  }
>> }
>>
>
> I use the following function:
>
> #(define-markup-command (when-property layout props symbol markp) (symbol?
> markup?)
>  (if (chain-assoc-get symbol props)
>      (interpret-markup layout props markp)
>      (ly:make-stencil '()  '(1 . -1) '(1 . -1))))
>
> Then I can code things like
>
>        \when-property #'header:dedication \fill-line { \italic
> \fromproperty #'header:dedication }
>                \when-property #'header:dedication \vspace #1
>
> and it only gets evaluated (i.e., only takes up space in my titling) when
> the dedication property has been set.
>
> HTH!
> Kieren.
>



-- 
Ralph Palmer
Montague City, MA
USA
palmer.r.vio...@gmail.com
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to