On Tue, Dec 16, 2008 at 10:38 AM, Kieren MacMillan
<address@hidden> 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.