lilypond-user
[Top][All Lists]
Advanced

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

Re: Titles


From: Ralph Palmer
Subject: Re: Titles
Date: Tue, 16 Dec 2008 13:03:44 -0500

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 <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.



--
Ralph Palmer
Montague City, MA
USA
address@hidden

reply via email to

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