Hello,

I find the current coding of LSR snippet 265 leaves much room for improvement, especially by using \set stanza for the braces and the more convenient commands \left-brace and \right-brace.
Attached is my new version. I hope you like it ;-)

Best, Simon
%% http://lsr.di.unimi.it/LSR/Item?id=265
%% see also http://lilypond.org/doc/v2.18/Documentation/snippets/vocal-music

% The argument to \left-brace and \right-brace is the point-size of the bracket
%
% translate is needed to simulate alignment not to the baseline of the text, but
% to the vertical center
leftbrace = \set stanza = \markup {
  \hspace #1
  \translate #'(0 . 0.8) \left-brace #45 }

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


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

lyricsfrombrace = \lyricmode { Here comes some more }


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


\score{
  <<
    \new Voice = m \melody
    \new Lyrics \lyricsto m \lyricsbeforebrace
    \new Lyrics \lyricsto m { \lyricsbeforebrace \rightbrace \lyricsfrombrace }
    \new Lyrics \lyricsto m \lyricsbeforebrace
  >>
}
_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to