Jump to content

Creating a short ossia section with lyrics: Difference between revisions

From LilyPond wiki
m New category
Issue #1551 has been fixed for a while now
 
Line 22: Line 22:
             \new CueVoice = "soloVoice" {
             \new CueVoice = "soloVoice" {
               \relative c'' {
               \relative c'' {
                 c4 c c c16[ c c
                 c4 c c c16 c c c |
                % workaround for issue 1551
                c16*1/2] \hideNotes c32 |
               }
               }
             }
             }

Latest revision as of 13:59, 14 July 2026

In vocal scores for a chorus the music for the soloists is sometimes omitted. In such cases a vocal cue can be inserted as a short ossia section.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=846

\score {
  \new ChoirStaff = "choirStaff" <<
    \new Staff = "sopranoStaff" {
      \new Voice = "sopranoVoice" {
        \compressEmptyMeasures
        R1*5
	<<
          R1
          \new Staff = "soloStaff"
          \with {
            \remove "Time_signature_engraver"
            alignAboveContext = #"sopranoStaff"
            fontSize = #-3
            \override StaffSymbol.staff-space = #(magstep -3)
            \override StaffSymbol.thickness = #(magstep -3)
          }
            \new CueVoice = "soloVoice" {
              \relative c'' {
                c4 c c c16 c c c |
              }
            }
            \new Lyrics = "soloLyrics"
            \with {
              alignBelowContext = "soloStaff"
              \override LyricText.font-size = #-3
            }
            \lyricsto "soloVoice"
            { Rea -- dy choir! Go for it now! }
        >>
        \relative c'' {
          b4 b b b |
          c4 c c c |
	}
      }
    }
    \new Lyrics = "sopranoLyrics" \lyricsto "sopranoVoice" {
      and here we are! La la la la
    }
    \new Staff = "altoStaff" {
      \new Voice = "altoVoice" {
        \relative c'' {
          R1*5
          R1
          b4 b b b |
          c4 c c c |
        }
      }
    }
  >>
}