lilypond-user
[Top][All Lists]
Advanced

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

Re: Using lyrics in a markup


From: Marc Hohl
Subject: Re: Using lyrics in a markup
Date: Thu, 10 Feb 2011 09:20:21 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

Am 08.02.2011 12:00, schrieb Jan-Peter Voigt:
Hello Marc, hello Jakob, hello list,

I just wanted to share a tiny extension of the lyrics->markup function:

...
            (cond
              ((eq? (ly:music-property lyrics 'name) 'LyricEvent)
               (ly:music-property lyrics 'text))
              ((eq? (ly:music-property lyrics 'name) 'HyphenEvent)
               (list "--"))
              ((eq? (ly:music-property lyrics 'name) 'LineBreakEvent)
               (list linebreakindicator))
;; to include stanza, copy the following three lines into the conditional of the function ((and (equal? (ly:music-property lyrics 'name) 'PropertySet)
                    (equal? (ly:music-property lyrics 'symbol) 'stanza))
               (markup #:bold (ly:music-property lyrics 'value)))
...

So if there are \set stanza statements, they will go into the markup.
This is great! Will this go into the lsr snippet, too?

Regards,

Marc



reply via email to

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