lilypond-user
[Top][All Lists]
Advanced

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

Snippet: Vertical brace spanning several lyrics lines [addition]


From: Robert Blackstone
Subject: Snippet: Vertical brace spanning several lyrics lines [addition]
Date: Wed, 6 Jan 2016 10:01:51 +0100

Dear list,

I found the snippet: "Vertical brace spanning several lyrics lines" 

It works perfectly "out of the box" for  three lyrics lines as in the snippet, but it took me quite some time to get it to work for two lyric lines. It is a wee bit more complicated than with an odd number of lyric lines.
 
This would be the "even number"-version: 
-------------------------------------------------------------
dropLyrics = {
  \override LyricText.extra-offset = #'(0 . -1)
  \override LyricHyphen.extra-offset = #'(0 . -1)
  \override LyricExtender.extra-offset = #'(0 . -1)
  \override StanzaNumber.extra-offset = #'(0 . -1)
}

leftbrace = \set stanza = \markup {
  \hspace #1
  \translate #'(0 . -0.6) \left-brace #25 }

rightbrace = \set stanza = \markup {
  \hspace #1
  \translate #'(0 . 0.4) \right-brace #25 }

lyricsbeforebrace = \lyricmode { Here are some ly -- rics }

lyricsfrombrace = \lyricmode { Here come some more }

melody = \relative c' { c d e f  g r4 f e d c }

\score{
  <<
     \new Voice = m {\autoBeamOff \melody} 
    \new Lyrics \lyricsto m  {\leftbrace \lyricsbeforebrace \rightbrace  \dropLyrics \lyricsfrombrace}
    \new Lyrics \lyricsto m { \lyricsbeforebrace  }
  >>
}
---------------------------------------------------------------------

I wonder if it would be a good idea to add this even number case to the existing snippet.

If yes, is this post sufficient? I'm fairly new in the LilyPond universe and I have no clear idea who manages the snippet repository and  how.

Best regards,
Robert Blackstone

reply via email to

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