lilypond-user
[Top][All Lists]
Advanced

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

parameters in lyrics?


From: Graham King
Subject: parameters in lyrics?
Date: Thu, 03 Dec 2015 14:04:48 +0000

I'm trying to enclose some lyrics within square brackets but, for reasons too tedious to trouble the list with*, I'd like to parameterise the brackets using the \foo and \fooEnd constructs in the following pseudocode.  Is there a way to do this without causing "[" and "]" to be set as separate syllables?

hopefully,
-- Graham
* it has to do with differentiating lyrics in renaissance music: black, coloured, or editorial.

\version "2.19.21"

foo = "["
fooEnd = "]"

theNotes = {
  \relative { e''1 d c }
}

theWords = \lyricmode {
  Three \foo blind \fooEnd mice,
}

\score
{
        \new StaffGroup
        <<
                \new Voice = "voice" \theNotes
                \new Lyrics \lyricsto "voice" \theWords
        >>
}


reply via email to

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