Jump to content

User:Michael Bednarek/LilyPond

From Wikipedia, the free encyclopedia

LilyPond scores that use advanced features.

Repeat, Da capo al segno, different instruments in one staff.

\header { tagline = ##f }
\paper { paper-width = 240\mm }
\layout { indent = 0 \context { \Score \remove "Bar_number_engraver" } }
global = { \key g \major \numericTimeSignature \time 2/4 }
heidetenor = \relative c'' { b,4. c8 | d4 d | d g | g b | b4. a8 | g4 s | s2 |
             fis4 g | a s | s2 | b4. a8 | g4 s | s2 }
tenorVoice = \relative c'' {
  \global \set midiInstrument = #"brass section" \voiceOne
  \repeat volta 2 { \heidetenor \bar ":|." }
  d,4. g8 | fis4 fis | fis fis | e fis | g s | s2 |
  fis4. g8 | a4 a | a a | d4. c8 | b4 s | s2 \bar "|."
}
verse = \lyricmode {
  Auf der Hei -- de blüht ein klei -- nes Blü -- me -- lein,
  und das heißt E -- ri ka.
  Denn ihr Herz ist vol -- ler  -- ßig -- keit
  zar -- ter Duft ent -- strömt dem Blü -- ten -- kleid.
}
verseR = \lyricmode {
  Heiß von hun --dert -- tau -- send klei -- nen Bie -- ne lein
  wird um -- schwärmt E -- ri -- ka.
}
heideshots = { s2*5 |s4 \override NoteHead #'style = #'cross e4 | e e |
               s2 | s4 e | e e | s2 | s4 e | e }
shots = \relative c'' { \global \set midiInstrument = #"gunshot" \voiceTwo
        \repeat volta 2 { \heideshots \mark \markup \small "Fine" e \bar ":|." }
        s2*4 | s4 e | e e | s2*4 | s4 e |e \mark \markup \small "D.C. al Fine"  e \bar "|." }
\score {
  <<
    \new Voice = "singer" { \tenorVoice }
    \addlyrics { \verse }
    \addlyrics { \verseR }
    \\ \new Voice = "shots" { \shots }
  >>
  \layout { }
}
\score { \unfoldRepeats
         { << \tenorVoice \\ \shots >> << \heidetenor \\ \heideshots >> }
  \midi {
    \tempo 4=120
    \context { \Score midiChannelMapping = #'instrument }
    \context { \Staff \remove "Staff_performer" }
    \context { \Voice \consists "Staff_performer" }
  }
}

\header { tagline = ##f }
\paper { paper-width = 240\mm }
\layout { indent = 0 \context { \Score \remove "Bar_number_engraver" } }
global = { \key g \major \numericTimeSignature \time 2/4 }
heidetenor = \relative c'' { b,4. c8 | d4 d | d g | g b | b4. a8 | g4 s | s2 |
             fis4 g | a s | s2 | b4. a8 | g4 s | s2 }
tenorVoice = \relative c'' {
  \global \set midiInstrument = #"brass section" \voiceOne
  \repeat volta 2 { \heidetenor \bar ":|." }
  d,4. g8 | fis4 fis | fis fis | e fis | g s | s2 |
  fis4. g8 | a4 a | a a | d4. c8 | b4 s | s2 \bar "|."
}
verse = \lyricmode {
  Auf der Hei -- de blüht ein klei -- nes Blü -- me -- lein,
  und das heißt E -- ri ka.
  Denn ihr Herz ist vol -- ler Sü -- ßig -- keit
  zar -- ter Duft ent -- strömt dem Blü -- ten -- kleid.
}
verseR = \lyricmode {
  Heiß von hun --dert -- tau -- send klei -- nen Bie -- ne lein
  wird um -- schwärmt E -- ri -- ka.
}
heideshots = { s2*5 |s4 \override NoteHead #'style = #'cross e4 | e e |
               s2 | s4 e | e e | s2 | s4 e | e }
shots = \relative c'' { \global \set midiInstrument = #"gunshot" \voiceTwo
        \repeat volta 2 { \heideshots \mark \markup \small "Fine" e \bar ":|." }
        s2*4 | s4 e | e e | s2*4 | s4 e |e \mark \markup \small "D.C. al Fine"  e \bar "|." }
\score {
  <<
    \new Voice = "singer" { \tenorVoice }
    \addlyrics { \verse }
    \addlyrics { \verseR }
    \\ \new Voice = "shots" { \shots }
  >>
  \layout { }
}
\score { \unfoldRepeats
         { << \tenorVoice \\ \shots >> << \heidetenor \\ \heideshots >> }
  \midi {
    \tempo 4=120
    \context { \Score midiChannelMapping = #'instrument }
    \context { \Staff \remove "Staff_performer" }
    \context { \Voice \consists "Staff_performer" }
  }
}

Hidden dynamics.

\header { tagline = ##f }
\layout { indent = 0\cm
  \context { \Score \remove "Bar_number_engraver" }
  \context { \Voice \remove "Dynamic_engraver" }
}

global = { \key f \major \time 4/4 }

sopranoVoice = \relative c'' {
  \global
  \dynamicUp \autoBeamOff
  a8. a16 a8 a g4 g | f a8 f d e f4 |
  c4 f8. a16 c4 c8 c | c c c4 c8 r8
  f, g | a4 a8 a g4 g | f8 g a f d e f4 |
  c f8. a16 c4 bes8 a | g4 g8 g f4 r4 |
  c' c8. c16 c4 a | f' f8. e16 d4 c |
  c4 c8. c16 d4 c8. c16 | c4 bes8 a g r
  f g | a4 a8 a g4 g | f8 g a f d e f4 |
  c f8. a16 c4 bes8 a | g4 g8 g f4 r \bar "|."
}

verse = \lyricmode {
  Once a jol -- ly swag -- man camped by a bill --a -- bong
  Un -- der the shade of a cool -- i -- bah tree,
  And he sang as he watched and wai -- ted till his Bil -- ly boiled,
  You'll come a -- waltz -- ing Ma -- til -- da with me.
  Waltz -- ing Ma -- til -- da, waltz -- ing Ma -- til --da,
  You'll come a -- waltz -- ing Ma -- til -- da with me,
  And he sang as he watched and wai -- ted till his Bil -- ly boiled,
  You'll come a -- waltz -- ing Ma -- til -- da with me.
}

right = \relative c'' {
  \global
  r8 a,\p c f r4 <e c bes> | r <a, c f> r <bes d f> |
  r8 a c f r a, c f | <c a' c>4 <c bes' c> <c a' c>8 r8
  f8 g | r8 a, [c f] r4 <e c bes g>4 | r4 <f c a> r <f d bes> |
  r8 a, c f r <f c a>8 <e c bes>4 | <e c bes g> <e c bes> <f c a> r |
  <c' a> <c a>8. <c a>16 <c a>4 <a f> | <f' a,> <f a,>8. <e c>16 <d bes>4 <c a> |
  <c a> <c a>8. <c a>16 <d bes>4 <c a>8. <c a>16 | <c a>4 <bes g>8 <a f> <g c> r
  f g | r a, c f r4 <e c bes> | r <f c a> r <f d bes> |
  r8 a, c f r a, c f | <e c bes g>4 <e c bes g> <f c a> r \bar "|."
}

left = \relative c {
  \global
  <f f,>4\pp r <c c,> r | <f f,> r <bes, bes,> r |
  <f' f,> r <f f,> r | <f f,> <c c,> <f f,>
  r | <f f,> r <c c,> r | <f f,> r bes, r |
  < f' f,> r <f f,> r8 c | <c c,>4 <c c,> <f f,> r |
  <f f,> <e' c a> <f c a> r | <f, f,> <a c f> <bes d f> <a c f> |
  <f f,> <a c f> <bes d f> <a c> | <c, c,> <g' bes c> <c, c,>8 r8
  r4 | <f f,> r <c c,> r | <f f,> r <bes, bes,> r | <f' f,> r <f f,> r | <c c,> <c c,> <f f,> r \bar "|."
}

sopranoVoicePart = \new Staff \with { midiInstrument = "clarinet"}
 { \sopranoVoice }
 \addlyrics { \verse }

pianoPart = \new PianoStaff <<
  \new Staff = "right" \with { midiInstrument = "acoustic guitar (steel)"}
  \right
  \new Staff = "left" \with { midiInstrument = "acoustic guitar (steel)" }
  { \clef bass \left }
>>

\score { << \sopranoVoicePart \pianoPart >>
  \layout { }
  \midi { \tempo 4=100 }
}

\header { tagline = ##f }
\layout { indent = 0\cm
  \context { \Score \remove "Bar_number_engraver" }
  \context { \Voice \remove "Dynamic_engraver" }
}

global = { \key f \major \time 4/4 }

sopranoVoice = \relative c'' {
  \global
  \dynamicUp \autoBeamOff
  a8. a16 a8 a g4 g | f a8 f d e f4 |
  c4 f8. a16 c4 c8 c | c c c4 c8 r8
  f, g | a4 a8 a g4 g | f8 g a f d e f4 |
  c f8. a16 c4 bes8 a | g4 g8 g f4 r4 |
  c' c8. c16 c4 a | f' f8. e16 d4 c |
  c4 c8. c16 d4 c8. c16 | c4 bes8 a g r
  f g | a4 a8 a g4 g | f8 g a f d e f4 |
  c f8. a16 c4 bes8 a | g4 g8 g f4 r \bar "|."
}

verse = \lyricmode {
  Once a jol -- ly swag -- man camped by a bill --a -- bong
  Un -- der the shade of a cool -- i -- bah tree,
  And he sang as he watched and wai -- ted till his Bil -- ly boiled,
  You'll come a -- waltz -- ing Ma -- til -- da with me.
  Waltz -- ing Ma -- til -- da, waltz -- ing Ma -- til --da,
  You'll come a -- waltz -- ing Ma -- til -- da with me,
  And he sang as he watched and wai -- ted till his Bil -- ly boiled,
  You'll come a -- waltz -- ing Ma -- til -- da with me.
}

right = \relative c'' {
  \global
  r8 a,\p c f r4 <e c bes> | r <a, c f> r <bes d f> |
  r8 a c f r a, c f | <c a' c>4 <c bes' c> <c a' c>8 r8
  f8 g | r8 a, [c f] r4 <e c bes g>4 | r4 <f c a> r <f d bes> |
  r8 a, c f r <f c a>8 <e c bes>4 | <e c bes g> <e c bes> <f c a> r |
  <c' a> <c a>8. <c a>16 <c a>4 <a f> | <f' a,> <f a,>8. <e c>16 <d bes>4 <c a> |
  <c a> <c a>8. <c a>16 <d bes>4 <c a>8. <c a>16 | <c a>4 <bes g>8 <a f> <g c> r
  f g | r a, c f r4 <e c bes> | r <f c a> r <f d bes> |
  r8 a, c f r a, c f | <e c bes g>4 <e c bes g> <f c a> r \bar "|."
}

left = \relative c {
  \global
  <f f,>4\pp r <c c,> r | <f f,> r <bes, bes,> r |
  <f' f,> r <f f,> r | <f f,> <c c,> <f f,>
  r | <f f,> r <c c,> r | <f f,> r bes, r |
  < f' f,> r <f f,> r8 c | <c c,>4 <c c,> <f f,> r |
  <f f,> <e' c a> <f c a> r | <f, f,> <a c f> <bes d f> <a c f> |
  <f f,> <a c f> <bes d f> <a c> | <c, c,> <g' bes c> <c, c,>8 r8
  r4 | <f f,> r <c c,> r | <f f,> r <bes, bes,> r | <f' f,> r <f f,> r | <c c,> <c c,> <f f,> r \bar "|."
}

sopranoVoicePart = \new Staff \with { midiInstrument = "clarinet"}
 { \sopranoVoice }
 \addlyrics { \verse }

pianoPart = \new PianoStaff <<
  \new Staff = "right" \with { midiInstrument = "acoustic guitar (steel)"}
  \right
  \new Staff = "left" \with { midiInstrument = "acoustic guitar (steel)" }
  { \clef bass \left }
>>

\score { << \sopranoVoicePart \pianoPart >>
  \layout { }
  \midi { \tempo 4=100 }
}

Choral staff with lyrics to soprano voice.

\header { tagline = ##f }
\layout { indent = 0\cm \set Score.tempoHideNote = ##t
  \context { \Score \remove "Bar_number_engraver" }
  \context { \Voice \remove "Dynamic_engraver" }
}

global = {
  \key d \minor
  \time 6/4
  \partial 4
}

soprano = \relative c'' {
  \global
  a4^\mf | a2 a4 c2 c4 | d2. d2
  a4 | bes2 bes4 g2 g4 \time 4/4 | a2
  r4^\ff \tempo 4=108 f4^\markup { \italic "c.f." } | a c d d | c8 (bes a g) f4
  g | a g f e | d2. \bar "|."
}

alto = \relative c' {
  \global
  d4_\mf | d2 d4 g2 g4 | a2 (g4) f2
  e4 | d2 d4 d2 c4 \time 4/4 | c2
  r4 c4 | f f f f | c2 d4
  e | f c d c | d2. \bar "|."
}

tenor = \relative c {
  \global
  d4_\ff^\markup { \italic "c.f." } | d2 d4 e2 e4 | f (g a) a2
  a4 | g2 g4 d2 e4 \time 4/4 | f2
  r4 a_\mf | c c bes bes | a2 a4
  c c c a a | <a fis>2._\pp \bar "|."
}

bass = \relative c {
  \global
  d4_\mf | d2 d4 d2 d4 | d2. d2
  c4 | bes2 bes4 bes2 c4 \time 4/4 | f2
  r4 f4 | f e d bes | f'4. (e8) d4
  c | f e d a' | d2. \bar "|."
}

verse = \lyricmode {
  Es kommt ein Schiff, ge -- la -- den
  bis an sein höch -- sten Bord,
  trägt Got -- tes Sohn voll Gna -- den,
  des Va -- ters e -- wigs Wort.
}

\score {
  \new ChoirStaff <<
    \new Staff \with { midiInstrument = "trumpet" \consists "Merge_rests_engraver" }
    <<
      \new Voice = "soprano" { \voiceOne \soprano }
      \new Voice = "alto" { \voiceTwo \alto }
    >>
    \new Lyrics \lyricsto "soprano" \verse
    \new Staff \with { midiInstrument = "trombone" \consists "Merge_rests_engraver" }
    <<
      \clef bass
      \new Voice = "tenor" { \voiceOne \tenor }
      \new Voice = "bass" { \voiceTwo \bass }
    >>
  >>
  \layout { }
  \midi { \tempo 4=120 }
}

\header { tagline = ##f }
\layout { indent = 0\cm \set Score.tempoHideNote = ##t
  \context { \Score \remove "Bar_number_engraver" }
  \context { \Voice \remove "Dynamic_engraver" }
}

global = {
  \key d \minor
  \time 6/4
  \partial 4
}

soprano = \relative c'' {
  \global
  a4^\mf | a2 a4 c2 c4 | d2. d2
  a4 | bes2 bes4 g2 g4 \time 4/4 | a2
  r4^\ff \tempo 4=108 f4^\markup { \italic "c.f." } | a c d d | c8 (bes a g) f4
  g | a g f e | d2. \bar "|."
}

alto = \relative c' {
  \global
  d4_\mf | d2 d4 g2 g4 | a2 (g4) f2
  e4 | d2 d4 d2 c4 \time 4/4 | c2
  r4 c4 | f f f f | c2 d4
  e | f c d c | d2. \bar "|."
}

tenor = \relative c {
  \global
  d4_\ff^\markup { \italic "c.f." } | d2 d4 e2 e4 | f (g a) a2
  a4 | g2 g4 d2 e4 \time 4/4 | f2
  r4 a_\mf | c c bes bes | a2 a4
  c c c a a | <a fis>2._\pp \bar "|."
}

bass = \relative c {
  \global
  d4_\mf | d2 d4 d2 d4 | d2. d2
  c4 | bes2 bes4 bes2 c4 \time 4/4 | f2
  r4 f4 | f e d bes | f'4. (e8) d4
  c | f e d a' | d2. \bar "|."
}

verse = \lyricmode {
  Es kommt ein Schiff, ge -- la -- den
  bis an sein höch -- sten Bord,
  trägt Got -- tes Sohn voll Gna -- den,
  des Va -- ters e -- wigs Wort.
}

\score {
  \new ChoirStaff <<
    \new Staff \with { midiInstrument = "trumpet" \consists "Merge_rests_engraver" }
    <<
      \new Voice = "soprano" { \voiceOne \soprano }
      \new Voice = "alto" { \voiceTwo \alto }
    >>
    \new Lyrics \lyricsto "soprano" \verse
    \new Staff \with { midiInstrument = "trombone" \consists "Merge_rests_engraver" }
    <<
      \clef bass
      \new Voice = "tenor" { \voiceOne \tenor }
      \new Voice = "bass" { \voiceTwo \bass }
    >>
  >>
  \layout { }
  \midi { \tempo 4=120 }
}

Guitar chords.

\layout { \context { \Score \remove "Bar_number_engraver" } }
<<
\new ChordNames { \set Staff.midiInstrument = #"acoustic guitar (nylon)" \chordmode { g,4 c, g,2 d, g, s c,4 g, d, a,:7 d,2 d,:7 g, e,:7 a,:m d,:7 g, a,4:m d,:7 g,2} }
\relative g' {\set Staff.midiInstrument = #"clarinet" \autoBeamOff \key g \major \time 2/4 \set Score.tempoHideNote = ##t \tempo 4=55
<b d,>4 <g e>8 <e c>8 | <d b>8 <g b,>8 <g b,>4 | <a fis>4 <g e>8 <a fis>8 | <b g>8 <e, c>8 <d b>4 | <d b>4 <cis ais>8 <d b>8 | <e c>8 <c' e,>8 <b d,>4 | <a d,>4 <b g>8 <a cis,>8 | d,4 r |
<a' c,>4 <b d,>8 <a c,>8 | <g b,>8 <e c>8 <d b>4 | <b' d,>4 <c e,>8 <b d,>8 | <e, c>8 <b' d,>8 <a c,>4 | <d, c>4 <e c>8 <d c>8 | <d b>8 <c' e,>8 <b d,>4 |
  \tempo 4=50 <a c,>4 <e c>8 <fis d>8 | <g b,>4 r \bar "|."
}
\addlyrics {
Ach, wie ist's mög -- lich dann,
dass ich dich las -- sen kann,
hab' dich von Her -- zen lieb,
das glau -- be mir!
Du hast das Her -- ze mein
so ganz ge -- nom -- men ein,
dass ich kein and' -- re lieb
als dich al -- lein!
 }
>>
\midi { \context { \ChordNames midiMinimumVolume = #0.3 midiMaximumVolume = #0.3 } }

\layout { \context { \Score \remove "Bar_number_engraver" } }
<<
\new ChordNames { \set Staff.midiInstrument = #"acoustic guitar (nylon)" \chordmode { g,4 c, g,2 d, g, s c,4 g, d, a,:7 d,2 d,:7 g, e,:7 a,:m d,:7 g, a,4:m d,:7 g,2} }
\relative g' {\set Staff.midiInstrument = #"clarinet" \autoBeamOff \key g \major \time 2/4 \set Score.tempoHideNote = ##t \tempo 4=55
<b d,>4 <g e>8 <e c>8 | <d b>8 <g b,>8 <g b,>4 | <a fis>4 <g e>8 <a fis>8 | <b g>8 <e, c>8 <d b>4 | <d b>4 <cis ais>8 <d b>8 | <e c>8 <c' e,>8 <b d,>4 | <a d,>4 <b g>8 <a cis,>8 | d,4 r |
<a' c,>4 <b d,>8 <a c,>8 | <g b,>8 <e c>8 <d b>4 | <b' d,>4 <c e,>8 <b d,>8 | <e, c>8 <b' d,>8 <a c,>4 | <d, c>4 <e c>8 <d c>8 | <d b>8 <c' e,>8 <b d,>4 |
  \tempo 4=50 <a c,>4 <e c>8 <fis d>8 | <g b,>4 r \bar "|."
}
\addlyrics {
Ach, wie ist's mög -- lich dann,
dass ich dich las -- sen kann,
hab' dich von Her -- zen lieb,
das glau -- be mir!
Du hast das Her -- ze mein
so ganz ge -- nom -- men ein,
dass ich kein and' -- re lieb
als dich al -- lein!
 }
>>
\midi { \context { \ChordNames midiMinimumVolume = #0.3 midiMaximumVolume = #0.3 } }

Lyrics skip first bars; very sparse 2nd voice in right hand; cue notes.

\header { tagline = ##f }
\layout { indent = 0 \context { \Score \remove "Bar_number_engraver" } }
\score {
{ \new ChoirStaff <<
    \new Staff = "right" \with { midiInstrument = "accordion" \consists "Merge_rests_engraver" } <<
      \new Voice = "first" \relative c'' { \voiceOne \key es \major \time 3/4 \partial 4 \tempo "Tempo di Valse"
        es,8 f | g4 bes bes | f as g | \tieUp es2.~ | es4 r4 \bar "||"
        \slurDown es8 (f) | g4 bes bes | f as as | g8 (f) es2~ | es bes'4 |
        g bes es | as, c es | bes2.~ | bes2 bes4 |
        es d es | f es c | bes8 (g) es2 |
        \stemDown \teeny bes''8^Whistle [g] es4 \normalsize \stemNeutral \autoBeamOff es,8 f |
        g4 bes bes | f as g | es2.~ | es4 r4 \bar "||" es8^Refrain\f f |
        g4 bes bes | f as as | g8 f es2~ | es2 bes'8 bes |
        g4 bes es | as, c es | bes2.~ | bes2 bes8 bes | es4 d es | f es c | bes8 g es2 |
        \stemDown \teeny bes''8^Whistle [g] es4 \normalsize \stemNeutral es,8 f |
        g4 bes bes | f as g | es2.~ | es4 r4 \bar "|."
      }
      \addlyrics {
  \repeat unfold 9 { \skip 1 }  Fare -- well to Old Eng -- land for -- ev -- er, __ Fare -- well to my old pals as well, __
  Fare -- well to the well -- known Old Bai -- ley \repeat unfold 3 { \skip 1 } where I once used to look such a swell.
  Sing -- ing too -- ral, li -- oor -- al, li -- ad -- di -- ty,
  sing -- ing too -- ral, li -- oor -- al, li -- ay,
  sing -- ing too -- ral, li -- oor -- al, li -- ad -- di -- ty,
  \repeat unfold 2 { \skip 1 } sing -- ing too -- ral, li -- oor -- al, li -- ay.}
      \new Voice ="second" \relative c'' { \voiceTwo \partial 4
        s4 | s2. | s2. | r4 \stemDown <bes, g> <bes g> | <bes g> r4 \bar "||" s4 |
        s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. |
        r4 <g bes> <g bes> | <g bes> r4 \bar "||" s4 | s2. |s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. |
        s2. | s2. | s2. | s2. | s2. | r4 <g bes> <g bes> | <g bes> r4 \bar "}."
      }
    \new Staff = "left" \with {midiInstrument = "accordion" } \relative c' { \clef bass \key es \major \time 3/4 \partial 4
      r4 | es,\pp <g bes es> <g bes es> | bes, <as' bes d> <as bes d> | es bes g | es r4 r4 |
           es' <g bes es> <g bes es> | bes, <as' bes d> <as bes d> | es  <g bes> bes, | g'8 f es4 r4 |
           es  <g bes es> <g bes es> | as, <as' c es> <as c es> |
           es  <g bes es> <g bes es> | bes, <g' bes es> <g bes es> |
           es  <g bes es> <g bes es> | as, <as' c es> <as c es> | es  <g bes> <g bes> | es <g bes> r4 |
           es  <g bes es> <g bes es> | bes, <as' bes d> <as bes d> | es bes g | es r4 \bar "||" r4 |
           es' <g bes es> <g bes es> | bes, <as' bes d> <as bes d> | es <g bes> bes, | g'8 f es4 r4 |
           es  <g bes es> <g bes es> | as, <as' c es> <as c es> |
           es  <g bes es> <g bes es> | bes, <g' bes es> r4 |
           es  <g bes es> <g bes es> | as, <as' c es>  <as c es> | es  <g bes> <g bes> | es <g bes> r4 |
           es  <g bes es> <g bes es> | bes, <as' bes d> <as bes d> | es bes g | es r4 \bar "||"
    }
>> >> }
\layout { }
\midi { \tempo 4=160 }
}

\header { tagline = ##f }
\layout { indent = 0 \context { \Score \remove "Bar_number_engraver" } }
\score {
{ \new ChoirStaff <<
    \new Staff = "right" \with { midiInstrument = "accordion" \consists "Merge_rests_engraver" } <<
      \new Voice = "first" \relative c'' { \voiceOne \key es \major \time 3/4 \partial 4 \tempo "Tempo di Valse"
        es,8 f | g4 bes bes | f as g | \tieUp es2.~ | es4 r4 \bar "||"
        \slurDown es8 (f) | g4 bes bes | f as as | g8 (f) es2~ | es bes'4 |
        g bes es | as, c es | bes2.~ | bes2 bes4 |
        es d es | f es c | bes8 (g) es2 |
        \stemDown \teeny bes''8^Whistle [g] es4 \normalsize \stemNeutral \autoBeamOff es,8 f |
        g4 bes bes | f as g | es2.~ | es4 r4 \bar "||" es8^Refrain\f f |
        g4 bes bes | f as as | g8 f es2~ | es2 bes'8 bes |
        g4 bes es | as, c es | bes2.~ | bes2 bes8 bes | es4 d es | f es c | bes8 g es2 |
        \stemDown \teeny bes''8^Whistle [g] es4 \normalsize \stemNeutral es,8 f |
        g4 bes bes | f as g | es2.~ | es4 r4 \bar "|."
      }
      \addlyrics {
  \repeat unfold 9 { \skip 1 }  Fare -- well to Old Eng -- land for -- ev -- er, __ Fare -- well to my old pals as well, __
  Fare -- well to the well -- known Old Bai -- ley \repeat unfold 3 { \skip 1 } where I once used to look such a swell.
  Sing -- ing too -- ral, li -- oor -- al, li -- ad -- di -- ty,
  sing -- ing too -- ral, li -- oor -- al, li -- ay,
  sing -- ing too -- ral, li -- oor -- al, li -- ad -- di -- ty,
  \repeat unfold 2 { \skip 1 } sing -- ing too -- ral, li -- oor -- al, li -- ay.}
      \new Voice ="second" \relative c'' { \voiceTwo \partial 4
        s4 | s2. | s2. | r4 \stemDown <bes, g> <bes g> | <bes g> r4 \bar "||" s4 |
        s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. |
        r4 <g bes> <g bes> | <g bes> r4 \bar "||" s4 | s2. |s2. | s2. | s2. | s2. | s2. | s2. | s2. | s2. |
        s2. | s2. | s2. | s2. | s2. | r4 <g bes> <g bes> | <g bes> r4 \bar "}."
      }
    \new Staff = "left" \with {midiInstrument = "accordion" } \relative c' { \clef bass \key es \major \time 3/4 \partial 4
      r4 | es,\pp <g bes es> <g bes es> | bes, <as' bes d> <as bes d> | es bes g | es r4 r4 |
           es' <g bes es> <g bes es> | bes, <as' bes d> <as bes d> | es  <g bes> bes, | g'8 f es4 r4 |
           es  <g bes es> <g bes es> | as, <as' c es> <as c es> |
           es  <g bes es> <g bes es> | bes, <g' bes es> <g bes es> |
           es  <g bes es> <g bes es> | as, <as' c es> <as c es> | es  <g bes> <g bes> | es <g bes> r4 |
           es  <g bes es> <g bes es> | bes, <as' bes d> <as bes d> | es bes g | es r4 \bar "||" r4 |
           es' <g bes es> <g bes es> | bes, <as' bes d> <as bes d> | es <g bes> bes, | g'8 f es4 r4 |
           es  <g bes es> <g bes es> | as, <as' c es> <as c es> |
           es  <g bes es> <g bes es> | bes, <g' bes es> r4 |
           es  <g bes es> <g bes es> | as, <as' c es>  <as c es> | es  <g bes> <g bes> | es <g bes> r4 |
           es  <g bes es> <g bes es> | bes, <as' bes d> <as bes d> | es bes g | es r4 \bar "||"
    }
>> >> }
\layout { }
\midi { \tempo 4=160 }
}

Four-part choir with lyrics to tenor I voice; merged rests; various slurs and ties.

\header { tagline = ##f }
\layout { indent = 0 \context { \Score \remove "Bar_number_engraver" } }

global = {
  \key c \major
  \time 4/4
  \partial 4
  \tempo "Marschmäßig"
  \autoBeamOff
}

scoreTenorI = \relative c'' {
  \global
  \tieDashed g8~ g | c4 \tieDashed e8~ e e4 d | c2 g4
  \slurDashed c8 (d) | e4 g8~ g g4 f | e2 r4
  \slurSolid c8 [(d)] | e4 e e d | \slurSolid e4. (f8) g4
  f8 [(e)] | d4 d d d8 [(c)] | d4. (e8) f4
  g | e e d d8 [(e)] | c2
  d | e4 g d d8 [(e)] | c2 r4 \bar "|."
}

scoreTenorII = \relative c'' {
  \global
  \tieDashed g8~ g | g4 \tieDashed c8~ c c4 b | g2 g4
  \slurDashed c8 (b) | c4 e8~ e e4 d | c2 r4
  \slurSolid c8 [(b)] | c4 c c b | c4. (d8) e4
  d8 [(c)] | b4 b b b8 [(a)] | d4. (c8) d4
  b | c c b b | a2
  b | c4 c b b | g2 r4 \bar "|."
}

scoreAVerseChoirI = \lyricmode {
  Ich __ hatt' einen Ka -- me -- ra -- den,
  einen bes- ssern findst du nit.
  Die Trom -- mel schlug zum Strei -- te,
  er ging an mei -- ner Sei -- te
  in glei -- chem Schritt und Tritt,
  in glei -- chem Schritt und Tritt.
}

scoreBassI = \relative c' {
  \global
  \tieDashed g8~ g8 | e4 g8 g g4 d | e2 e4
  g8 g | c4 g8 g g4 g | g2 r4
  g4 | g g g g | g2 c4
  g | g g g g | g2 b4
  g | g g g f | e2
  g | g4 g g f | e2 r4 \bar "|."
}

scoreBassII = \relative c {
  \global
  \tieDashed g8~ g8 | c4 c8 e g4 g, | c2 c4
  e8 g | c4 c,8 c g4 b | c2 r4
  e8 [(d)] | c4 e8 [(f)] g4 g, | c2 c4
  c8 [(e)] | g4 g,8 [(a)] b4 d | g2 g4
  g, | c8 [(d)] e [(f)] g4 g, | a2
  g | c8 [(d)] e [(f)] g4 g, | <c c,>2 r4 \bar "|."
}

scoreAChoirIPart = \new ChoirStaff <<
  \new Staff \with { \consists "Merge_rests_engraver"
    midiInstrument = "trumpet" \transposition c
  } <<
    \new Voice = "tenorI" { \voiceOne \scoreTenorI }
    \new Voice = "tenorII" { \voiceTwo \scoreTenorII }
  >>
  \new Lyrics \lyricsto "tenorI" \scoreAVerseChoirI
>>

scoreAChoirIIPart = \new ChoirStaff <<
  \new Staff \with { \consists "Merge_rests_engraver"
    midiInstrument = "brass section"
    midiMaximumVolume = #0.7
  } <<
    \clef bass
    \new Voice = "bassI" { \voiceOne \scoreBassI }
    \new Voice = "bassII" { \voiceTwo \scoreBassII }
  >>
>>
\score {
  <<
    \scoreAChoirIPart
    \scoreAChoirIIPart
  >>
  \layout { }
  \midi { \tempo 4=75 }
}

\header { tagline = ##f }
\layout { indent = 0 \context { \Score \remove "Bar_number_engraver" } }

global = {
  \key c \major
  \time 4/4
  \partial 4
  \tempo "Marschmäßig"
  \autoBeamOff
}

scoreTenorI = \relative c'' {
  \global
  \tieDashed g8~ g | c4 \tieDashed e8~ e e4 d | c2 g4
  \slurDashed c8 (d) | e4 g8~ g g4 f | e2 r4
  \slurSolid c8 [(d)] | e4 e e d | \slurSolid e4. (f8) g4
  f8 [(e)] | d4 d d d8 [(c)] | d4. (e8) f4
  g | e e d d8 [(e)] | c2
  d | e4 g d d8 [(e)] | c2 r4 \bar "|."
}

scoreTenorII = \relative c'' {
  \global
  \tieDashed g8~ g | g4 \tieDashed c8~ c c4 b | g2 g4
  \slurDashed c8 (b) | c4 e8~ e e4 d | c2 r4
  \slurSolid c8 [(b)] | c4 c c b | c4. (d8) e4
  d8 [(c)] | b4 b b b8 [(a)] | d4. (c8) d4
  b | c c b b | a2
  b | c4 c b b | g2 r4 \bar "|."
}

scoreAVerseChoirI = \lyricmode {
  Ich __ hatt' einen Ka -- me -- ra -- den,
  einen bes- ssern findst du nit.
  Die Trom -- mel schlug zum Strei -- te,
  er ging an mei -- ner Sei -- te
  in glei -- chem Schritt und Tritt,
  in glei -- chem Schritt und Tritt.
}

scoreBassI = \relative c' {
  \global
  \tieDashed g8~ g8 | e4 g8 g g4 d | e2 e4
  g8 g | c4 g8 g g4 g | g2 r4
  g4 | g g g g | g2 c4
  g | g g g g | g2 b4
  g | g g g f | e2
  g | g4 g g f | e2 r4 \bar "|."
}

scoreBassII = \relative c {
  \global
  \tieDashed g8~ g8 | c4 c8 e g4 g, | c2 c4
  e8 g | c4 c,8 c g4 b | c2 r4
  e8 [(d)] | c4 e8 [(f)] g4 g, | c2 c4
  c8 [(e)] | g4 g,8 [(a)] b4 d | g2 g4
  g, | c8 [(d)] e [(f)] g4 g, | a2
  g | c8 [(d)] e [(f)] g4 g, | <c c,>2 r4 \bar "|."
}

scoreAChoirIPart = \new ChoirStaff <<
  \new Staff \with { \consists "Merge_rests_engraver"
    midiInstrument = "trumpet" \transposition c
  } <<
    \new Voice = "tenorI" { \voiceOne \scoreTenorI }
    \new Voice = "tenorII" { \voiceTwo \scoreTenorII }
  >>
  \new Lyrics \lyricsto "tenorI" \scoreAVerseChoirI
>>

scoreAChoirIIPart = \new ChoirStaff <<
  \new Staff \with { \consists "Merge_rests_engraver"
    midiInstrument = "brass section"
    midiMaximumVolume = #0.7
  } <<
    \clef bass
    \new Voice = "bassI" { \voiceOne \scoreBassI }
    \new Voice = "bassII" { \voiceTwo \scoreBassII }
  >>
>>
\score {
  <<
    \scoreAChoirIPart
    \scoreAChoirIIPart
  >>
  \layout { }
  \midi { \tempo 4=75 }
}

Four-part organ setting; lyrics to first voice; hidden dynamics; merged rests.

\header { tagline = ##f }
\layout { indent = 0\cm
  \context { \Score \remove "Bar_number_engraver" }
  \context { \Voice \remove "Dynamic_engraver" }
}
global = {
  \key d \major
  \time 4/4
  \partial 4
}
rightOne = \relative a' { \voiceOne
  \global \autoBeamOff \set Staff.midiInstrument = "church organ"
   { \repeat volta 2 { d4^\ff | d a8 a g4 fis8 e | fis4 (e) d d' | cis b8 a b4 a8 gis | a2 r4 }
 fis8^\mf [(g!)] | a4 a8 a a4 g8 fis | fis4 e r4
 cis'8 [(d)] | e4 g,8 g g4 fis8 e | fis2 r4 \bar "" \break
 a4 | b a8 a b4 cis8 cis | cis [(d8)] d4 r4
 \tempo 4 = 102 g,^\ff | fis e8 d e4 d8 cis | d2 r4 \bar  "|." }
}
words = \lyricmode {
Auf, Chris -- ten, singt fest -- li -- che Lie -- der
und jauch -- zet mit fröh -- li --chem Klang!
Im Stal -- le bei Beth -- le -- hems To -- ren
hat mit -- ten in nächt -- li -- cher Zeit
Ma -- ri -- a, die Jung -- frau ge -- bo -- ren
den Hei -- land, der al -- le er- freut. }
repeated = \lyricmode {
Es schal -- le auf Er -- den laut wie -- der
süß  -- nen -- der Ju -- bel -- ge -- sang. }
rightTwo = \relative a' { \voiceTwo
  \global % \set Staff.midiInstrument = "church organ"
   { \repeat volta 2 { fis4 | d e8 [d] d4. cis8 | d4 cis d fis8 gis | a4 gis8 fis~ fis4 e~ | e2 r4 }
  d4^\p | e fis8 d e4~ e8 d ~ | d4 cis r4 a' | g! d2~ d8 cis | d2 r4 \bar "" \break
  e | fis4. e8 d4 g~ | g fis r d~^\f | d cis8 b~ b4 a~ | a2 r4 \bar "|." }
}
leftOne = \relative c' { \voiceThree
  \global \set Staff.midiInstrument = "church organ"
  { \repeat volta 2 { a4~ | a4 cis8 a b4 a8 g | a4. g8 fis4 b8 d | e4 d8 cis d4 cis8 b | cis2 r4 }
  a8^\p b | cis4 d8 a~ a4 b8 a~ | a gis a4 r4 e'8 d | b2. a8 g | a2 r4 \bar "" \break
  a4 | d4. cis8 b4 e4~ | e d4 r4 b_\f | a4. fis8 g4 fis8 e | fis2 r4 \bar  "|." }
}
leftTwo = \relative c' { \voiceFour
  \global % \set Staff.midiInstrument = "church organ"
  { \repeat volta 2 { d,4 | fis a8 fis g4 d8 e | d4 a d b | cis e8 fis b,4 cis8 e | a,2 r4 }
  d8\p b | a4 d8 fis cis4 e8 fis | d4 a r a'8 fis | e4 g b, d8 e | d2 r4 \bar "" \break
  cis | b fis' g e | a b r4 b,\f | d a8 b g4 a | d2 r4 \bar  "|." }
}
\score {
  \new ChoirStaff <<
    \new Staff = "right" \with { \consists "Merge_rests_engraver" }
    << { \new Voice = "singer" \rightOne } 
       { \new Voice \rightTwo } >>
    \new Lyrics \lyricsto "singer" \words
    \new Lyrics \lyricsto "singer" \repeated
    \new Staff = "left" \with { \consists "Merge_rests_engraver"
    } { \clef bass << \leftOne \\ \leftTwo >> }
  >>
  \layout { \set Score.tempoHideNote = ##t }
}
\score { \unfoldRepeats
         { << \rightOne \\ \rightTwo \\ \leftOne \\ \leftTwo >> } 
         \midi { \tempo 4=112 }
}

\header { tagline = ##f }
\layout { indent = 0\cm
  \context { \Score \remove "Bar_number_engraver" }
  \context { \Voice \remove "Dynamic_engraver" }
}
global = {
  \key d \major
  \time 4/4
  \partial 4
}
rightOne = \relative a' { \voiceOne
  \global \autoBeamOff \set Staff.midiInstrument = "church organ"
   { \repeat volta 2 { d4^\ff | d a8 a g4 fis8 e | fis4 (e) d d' | cis b8 a b4 a8 gis | a2 r4 }
 fis8^\mf [(g!)] | a4 a8 a a4 g8 fis | fis4 e r4
 cis'8 [(d)] | e4 g,8 g g4 fis8 e | fis2 r4 \bar "" \break
 a4 | b a8 a b4 cis8 cis | cis [(d8)] d4 r4
 \tempo 4 = 102 g,^\ff | fis e8 d e4 d8 cis | d2 r4 \bar  "|." }
}
words = \lyricmode {
Auf, Chris -- ten, singt fest -- li -- che Lie -- der
und jauch -- zet mit fröh -- li --chem Klang!
Im Stal -- le bei Beth -- le -- hems To -- ren
hat mit -- ten in nächt -- li -- cher Zeit
Ma -- ri -- a, die Jung -- frau ge -- bo -- ren
den Hei -- land, der al -- le er- freut. }
repeated = \lyricmode {
Es schal -- le auf Er -- den laut wie -- der
süß tö -- nen -- der Ju -- bel -- ge -- sang. }
rightTwo = \relative a' { \voiceTwo
  \global % \set Staff.midiInstrument = "church organ"
   { \repeat volta 2 { fis4 | d e8 [d] d4. cis8 | d4 cis d fis8 gis | a4 gis8 fis~ fis4 e~ | e2 r4 }
  d4^\p | e fis8 d e4~ e8 d ~ | d4 cis r4 a' | g! d2~ d8 cis | d2 r4 \bar "" \break
  e | fis4. e8 d4 g~ | g fis r d~^\f | d cis8 b~ b4 a~ | a2 r4 \bar "|." }
}
leftOne = \relative c' { \voiceThree
  \global \set Staff.midiInstrument = "church organ"
  { \repeat volta 2 { a4~ | a4 cis8 a b4 a8 g | a4. g8 fis4 b8 d | e4 d8 cis d4 cis8 b | cis2 r4 }
  a8^\p b | cis4 d8 a~ a4 b8 a~ | a gis a4 r4 e'8 d | b2. a8 g | a2 r4 \bar "" \break
  a4 | d4. cis8 b4 e4~ | e d4 r4 b_\f | a4. fis8 g4 fis8 e | fis2 r4 \bar  "|." }
}
leftTwo = \relative c' { \voiceFour
  \global % \set Staff.midiInstrument = "church organ"
  { \repeat volta 2 { d,4 | fis a8 fis g4 d8 e | d4 a d b | cis e8 fis b,4 cis8 e | a,2 r4 }
  d8\p b | a4 d8 fis cis4 e8 fis | d4 a r a'8 fis | e4 g b, d8 e | d2 r4 \bar "" \break
  cis | b fis' g e | a b r4 b,\f | d a8 b g4 a | d2 r4 \bar  "|." }
}
\score {
  \new ChoirStaff <<
    \new Staff = "right" \with { \consists "Merge_rests_engraver" }
    << { \new Voice = "singer" \rightOne } 
       { \new Voice \rightTwo } >>
    \new Lyrics \lyricsto "singer" \words
    \new Lyrics \lyricsto "singer" \repeated
    \new Staff = "left" \with { \consists "Merge_rests_engraver"
    } { \clef bass << \leftOne \\ \leftTwo >> }
  >>
  \layout { \set Score.tempoHideNote = ##t }
}
\score { \unfoldRepeats
         { << \rightOne \\ \rightTwo \\ \leftOne \\ \leftTwo >> } 
         \midi { \tempo 4=112 }
}

Meter changes; repeat.

\header { tagline = ##f }
\layout { indent = 0 \context { \Score \remove "Bar_number_engraver" } }

melody = \relative c'' { \set Staff.midiInstrument = #"trombone" \transposition g \key g \major \time 6/8 \partial 8
  \dynamicUp \autoBeamOff
  \repeat volta 2 { d,8 | \time 9/8 g4 g8 g8. ([fis16]) g8 a g a | \time 6/8 b4 b8 a8. ([g16]) a8 | g4. r4 }
  b16 ([c]) | d4 b8 b8. ([a16]) b8 | c a4 r4 d,8 | c'4 c8 b8. ([c16]) b8 | a4.~ a8 r8 b16 ([a]) |
  \time 9/8 g4 g8 g8. ([fis16]) g8 a g a \time 6/8 | b4 b8 a8. ([g16]) a8 | g4. r4 \bar "|."
}

\addlyrics {
  Wenn al -- le un -- treu wer -- den, so blei -- ben wir doch treu,
  Ge -- fähr -- ten un -- srer Ju -- gend, ihr Bil -- der bess -- rer Zeit,
  die uns zu Män -- ner -- tu -- gend und  Lie -- bes -- tod ge -- weiht.
}
\addlyrics { dass im -- mer noch auf Er -- den für euch ein Fähn -- lein sei. }

\score { \melody \layout { } }
\score { \unfoldRepeats { \melody } \midi { \tempo 4.=72 } }

\header { tagline = ##f }
\layout { indent = 0 \context { \Score \remove "Bar_number_engraver" } }

melody = \relative c'' { \set Staff.midiInstrument = #"trombone" \transposition g \key g \major \time 6/8 \partial 8
  \dynamicUp \autoBeamOff
  \repeat volta 2 { d,8 | \time 9/8 g4 g8 g8. ([fis16]) g8 a g a | \time 6/8 b4 b8 a8. ([g16]) a8 | g4. r4 }
  b16 ([c]) | d4 b8 b8. ([a16]) b8 | c a4 r4 d,8 | c'4 c8 b8. ([c16]) b8 | a4.~ a8 r8 b16 ([a]) |
  \time 9/8 g4 g8 g8. ([fis16]) g8 a g a \time 6/8 | b4 b8 a8. ([g16]) a8 | g4. r4 \bar "|."
}

\addlyrics {
  Wenn al -- le un -- treu wer -- den, so blei -- ben wir doch treu,
  Ge -- fähr -- ten un -- srer Ju -- gend, ihr Bil -- der bess -- rer Zeit,
  die uns zu Män -- ner -- tu -- gend und  Lie -- bes -- tod ge -- weiht.
}
\addlyrics { dass im -- mer noch auf Er -- den für euch ein Fähn -- lein sei. }

\score { \melody \layout { } }
\score { \unfoldRepeats { \melody } \midi { \tempo 4.=72 } }

Ritardando.

\header { tagline = ##f }
\layout { indent = 0\cm \context { \Score \remove "Bar_number_engraver" } }

global = {
  \key d \major
  \time 6/8
% \tempo "Andante"
}

sopranoVoice = \relative c'' { \set Score.tempoHideNote = ##t \tempo 4. = 52
  \global
  \dynamicUp \autoBeamOff
  fis,8^"Andante" g fis e d e | d4 r8 r4. |
  d8 g g g a b | a4 r8 r4. |
  e8 dis e e dis e | g4 r8 r4. |
  fis8 fis fis g fis g | a4 r8 r4. |
  b8 b b b ais b | d4 r8 r4. |
  a!8 a a a gis a | d4 r8 r4. |
  g,8 a g fis g a | e4 r8 r4. |
  fis8 g fis e d e | \tempo 4. = 48 d4 r8 r4 fis8 |
  a4.~ (a16 [gis g fis]) g ([e]) | \tempo 4. = 52 d4 r8 r4. | R2.*3 | \bar "|."
}

verse = \lyricmode {
  Schla -- fe, mein Prinz -- chen, schlaf ein,
  Schäf -- chen ruhn und  -- ge -- lein,
  Gar -- ten und Wie -- se ver -- stummt,
  auch nicht ein Bien -- chen mehr summt,
  Lu -- na mit sil -- ber -- nem Schein
  gu -- cket zum Fen -- ster her -- ein,
  schla -- fe bei sil -- ber -- nem Schein,
  schla -- fe, mein Prinz -- chen, schlaf ein,
  schlaf ein, __ schlaf ein!
}

rightOne = \relative c'' {
  \global
  <a, d fis>4.\pp <g cis e> | r8 <fis a d>8 <fis a d> r8 <fis a d> <fis a d> |
  r <g b d> <g b d> r8 <g b d> <g b d> | r8 <fis a d> <fis a d> r8 <fis a d> <fis a d> |
  <cis' e> <bis dis> <cis e> <cis e> <bis dis> <cis e> | r8 cis' (a e' cis a) |
  r8 <d, fis> <d fis> <e g> <dis fis> <e g> | r8 a fis fis' d a |
  <d, g b> <d g b> <d g b> <d g b> <d g b> <d g b> | r8 \stemDown d' d g16 (fis e d cis b) |
  r8 \stemNeutral <d, a'> <d a'> <d a'> <d a'> <d a'> | r8 d' d fis16 (e d cis b a) |
  <e g>4 r8 <d fis>4 r8 | \slurDown <e cis> (a gis g fis g16 e) |<a, d fis>4 r8 <g cis e>4 r8 |
  <fis d'> (a fis') <fis, d'> (a fis') | <cis e> (a a') <cis, e> (a a') | <fis, d'> (a fis') <fis, d'> (a fis') |
  \slurUp <a a'>4.~ (a'16 gis g fis g e) | d8 <d a fis>\ppp <d a fis> <d a fis> <d a fis> <d a fis> | <d a fis>4 r8 r4. |
}

rightTwo = \relative c'' {
  \global
  s4. s4. | r8 s4 r8 s4 | r8 s4 r8 s4 | r8 s4 r8 s4 | s4. s4. g4. g4. |
  r8 s4 s4. | fis4. fis4. | s4. s4. | r8 s4 s4. | r8 s4 s4. | r8 s4 s4. | s4 r8 s4 r8 |
  s2. | s4 r8 s4 r8 | s2. | s2. | s2. | s2. | s2. | s4 r8 r4. |
}

leftOne = \relative c {
  \global
  \stemNeutral fis4.\pp a, | d,4 r8 d'4 r8 | d4 r8 d4 r8 | d4 r8 d4 r8 |
  a4 r8 a4 r8 | a2. | d4 r8 d4 r8 | d2. |
  g8 g g g g g | <b g> <b g> <b g> <b g> <b g> <b g> |
  fis fis fis fis fis fis | <a fis> <a fis> <a fis> <a fis> <a fis> <a fis> |
  <a cis,>4 r8 <a d,>4 r8 | <a a,>4.~ <a a,>4 r8 | d,4 r8 a4 r8 | d,4. d'4. |
  <g a,>2. | d4. d4. | r8 \stemUp <g e> <g e> <g e> <g e> <g e> | <fis d> <d d,>\ppp <d d,> <d d,> <d d,> <d d,> | <d d,>4 r8 r4. |
}

leftTwo = \relative c' {
  \global
  s2. | s4 r8 s4 r8 | s4 r8 s4 r8 | s4 r8 s4 r8 |
  s4 r8 s4 r8 | s2. | s4 r8 s4 r8 | s2. | s2. | s2. | s2. | s2. |
  s4 r8 s4 r8 | s4. s4 r8 | s4 r8 s4 r8 | s2. | s2. | s2. | a,2. | s2. | s4 r8 r4. |
}

sopranoVoicePart = \new Staff \with {
  midiInstrument = "clarinet"
} { \sopranoVoice }
\addlyrics { \verse }

instrPart = \new PianoStaff <<
  \new Staff = "right" \with {
    midiInstrument = "acoustic guitar (nylon)" \consists "Merge_rests_engraver"
  } << \rightOne \\ \rightTwo >>
  \new Staff = "left" \with {
    midiInstrument = "acoustic guitar (nylon)" \consists "Merge_rests_engraver"
  } { \clef bass << \leftOne \\ \leftTwo >> }
>>
\score {
  <<
    \sopranoVoicePart
    \instrPart
  >>
  \layout { }
  \midi { }
}

\header { tagline = ##f }
\layout { indent = 0\cm \context { \Score \remove "Bar_number_engraver" } }

global = {
  \key d \major
  \time 6/8
% \tempo "Andante"
}

sopranoVoice = \relative c'' { \set Score.tempoHideNote = ##t \tempo 4. = 52
  \global
  \dynamicUp \autoBeamOff
  fis,8^"Andante" g fis e d e | d4 r8 r4. |
  d8 g g g a b | a4 r8 r4. |
  e8 dis e e dis e | g4 r8 r4. |
  fis8 fis fis g fis g | a4 r8 r4. |
  b8 b b b ais b | d4 r8 r4. |
  a!8 a a a gis a | d4 r8 r4. |
  g,8 a g fis g a | e4 r8 r4. |
  fis8 g fis e d e | \tempo 4. = 48 d4 r8 r4 fis8 |
  a4.~ (a16 [gis g fis]) g ([e]) | \tempo 4. = 52 d4 r8 r4. | R2.*3 | \bar "|."
}

verse = \lyricmode {
  Schla -- fe, mein Prinz -- chen, schlaf ein,
  Schäf -- chen ruhn und Vö -- ge -- lein,
  Gar -- ten und Wie -- se ver -- stummt,
  auch nicht ein Bien -- chen mehr summt,
  Lu -- na mit sil -- ber -- nem Schein
  gu -- cket zum Fen -- ster her -- ein,
  schla -- fe bei sil -- ber -- nem Schein,
  schla -- fe, mein Prinz -- chen, schlaf ein,
  schlaf ein, __ schlaf ein!
}

rightOne = \relative c'' {
  \global
  <a, d fis>4.\pp <g cis e> | r8 <fis a d>8 <fis a d> r8 <fis a d> <fis a d> |
  r <g b d> <g b d> r8 <g b d> <g b d> | r8 <fis a d> <fis a d> r8 <fis a d> <fis a d> |
  <cis' e> <bis dis> <cis e> <cis e> <bis dis> <cis e> | r8 cis' (a e' cis a) |
  r8 <d, fis> <d fis> <e g> <dis fis> <e g> | r8 a fis fis' d a |
  <d, g b> <d g b> <d g b> <d g b> <d g b> <d g b> | r8 \stemDown d' d g16 (fis e d cis b) |
  r8 \stemNeutral <d, a'> <d a'> <d a'> <d a'> <d a'> | r8 d' d fis16 (e d cis b a) |
  <e g>4 r8 <d fis>4 r8 | \slurDown <e cis> (a gis g fis g16 e) |<a, d fis>4 r8 <g cis e>4 r8 |
  <fis d'> (a fis') <fis, d'> (a fis') | <cis e> (a a') <cis, e> (a a') | <fis, d'> (a fis') <fis, d'> (a fis') |
  \slurUp <a a'>4.~ (a'16 gis g fis g e) | d8 <d a fis>\ppp <d a fis> <d a fis> <d a fis> <d a fis> | <d a fis>4 r8 r4. |
}

rightTwo = \relative c'' {
  \global
  s4. s4. | r8 s4 r8 s4 | r8 s4 r8 s4 | r8 s4 r8 s4 | s4. s4. g4. g4. |
  r8 s4 s4. | fis4. fis4. | s4. s4. | r8 s4 s4. | r8 s4 s4. | r8 s4 s4. | s4 r8 s4 r8 |
  s2. | s4 r8 s4 r8 | s2. | s2. | s2. | s2. | s2. | s4 r8 r4. |
}

leftOne = \relative c {
  \global
  \stemNeutral fis4.\pp a, | d,4 r8 d'4 r8 | d4 r8 d4 r8 | d4 r8 d4 r8 |
  a4 r8 a4 r8 | a2. | d4 r8 d4 r8 | d2. |
  g8 g g g g g | <b g> <b g> <b g> <b g> <b g> <b g> |
  fis fis fis fis fis fis | <a fis> <a fis> <a fis> <a fis> <a fis> <a fis> |
  <a cis,>4 r8 <a d,>4 r8 | <a a,>4.~ <a a,>4 r8 | d,4 r8 a4 r8 | d,4. d'4. |
  <g a,>2. | d4. d4. | r8 \stemUp <g e> <g e> <g e> <g e> <g e> | <fis d> <d d,>\ppp <d d,> <d d,> <d d,> <d d,> | <d d,>4 r8 r4. |
}

leftTwo = \relative c' {
  \global
  s2. | s4 r8 s4 r8 | s4 r8 s4 r8 | s4 r8 s4 r8 |
  s4 r8 s4 r8 | s2. | s4 r8 s4 r8 | s2. | s2. | s2. | s2. | s2. |
  s4 r8 s4 r8 | s4. s4 r8 | s4 r8 s4 r8 | s2. | s2. | s2. | a,2. | s2. | s4 r8 r4. |
}

sopranoVoicePart = \new Staff \with {
  midiInstrument = "clarinet"
} { \sopranoVoice }
\addlyrics { \verse }

instrPart = \new PianoStaff <<
  \new Staff = "right" \with {
    midiInstrument = "acoustic guitar (nylon)" \consists "Merge_rests_engraver"
  } << \rightOne \\ \rightTwo >>
  \new Staff = "left" \with {
    midiInstrument = "acoustic guitar (nylon)" \consists "Merge_rests_engraver"
  } { \clef bass << \leftOne \\ \leftTwo >> }
>>
\score {
  <<
    \sopranoVoicePart
    \instrPart
  >>
  \layout { }
  \midi { }
}

Repeat, two voices/instruments per staff, MIDI pan position.

\header { arranger = "Setting: Michael Praetorius" tagline = ##f }
\layout { indent = 0 \context { \Score \remove "Bar_number_engraver" } }
global = { \key f \major \time 4/4 \partial 2 }

soprano = \relative c'' {
  \global \set Staff.midiPanPosition = -0.5 \set midiInstrument = "violin"
  \repeat volta 2 { c2  | c4 c d c | c2 a | bes a4 g~ | g f2 e4 | f2 } \break
  r4 a | g e f d | c2 r4 c' | c c d c | c2 a | bes a4 g~ | g f2 e4 | f2 \bar "|."
}

alto = \relative c'' {
  \global \set Staff.midiPanPosition = 0.5 \set midiInstrument = "violin"
  \repeat volta 2 { a2  | a4 f f f | e2 d | d c4 c | d4. (a8) c2 | c }
  r4 f | d c c b | c8 (d e4) r e | g f f f | e2 d | d f4 d | e (f g) c, | c2 \bar "|."
}

tenor = \relative c' {
  \global \set Staff.midiPanPosition = -1 \set midiInstrument = "viola"
  \repeat volta 2 { c2 | c4 a bes a | g2 f | f a4 c | bes (a2) g4 | a2 }
  r4 c | bes a a g | g2 r4 g | g a bes a | g2 fis | g c4 bes | a2 g | a2 \bar "|."
}

bass = \relative c {
  \global \set Staff.midiPanPosition = 1 \set midiInstrument = "cello"
  \repeat volta 2 { f2  | f4 f bes f | c2 d | bes f'4 e | d2 c | f, }
  r4 f' | g a f g | c,2 r4 c | e f bes, f' | c2 d | g, a4 bes | c2 c | f,2 \bar "|."
}

verse = \lyricmode {
  Es ist ein Ros ent -- sprun -- gen
  aus ei -- ner Wur -- zel zart,
  Und hat ein Blüm -- lein bracht,
  mit -- ten im kal -- ten Win -- ter,
  wohl zu der hal -- ben Nacht.
}
verseR = \lyricmode {
  Wie uns die Al -- ten sun -- gen,
  von Jes -- se kam die Art,
}

\score {
  \new ChoirStaff <<
    \new Staff \with { \consists "Merge_rests_engraver" }
    <<
      \new Voice = "soprano" { \voiceOne \soprano }
      \addlyrics { \verse }
      \addlyrics { \verseR }
      \new Voice = "alto" { \voiceTwo \alto }
    >>
    \new Staff \with { \consists "Merge_rests_engraver" }
    <<
      \clef bass
      \new Voice = "tenor" { \voiceOne \tenor }
      \new Voice = "bass" { \voiceTwo \bass }
    >>
  >>
  \layout { }
}
\score { \unfoldRepeats { << \soprano \\ \alto \\ \tenor \\ \bass >> }
  \midi {
    \tempo 4=100
    \context { \Score midiChannelMapping = #'instrument }
    \context { \Staff \remove "Staff_performer" }
    \context { \Voice \consists "Staff_performer" }
  }
}

\header { arranger = "Setting: Michael Praetorius" tagline = ##f }
\layout { indent = 0 \context { \Score \remove "Bar_number_engraver" } }
global = { \key f \major \time 4/4 \partial 2 }

soprano = \relative c'' {
  \global \set Staff.midiPanPosition = -0.5 \set midiInstrument = "violin"
  \repeat volta 2 { c2  | c4 c d c | c2 a | bes a4 g~ | g f2 e4 | f2 } \break
  r4 a | g e f d | c2 r4 c' | c c d c | c2 a | bes a4 g~ | g f2 e4 | f2 \bar "|."
}

alto = \relative c'' {
  \global \set Staff.midiPanPosition = 0.5 \set midiInstrument = "violin"
  \repeat volta 2 { a2  | a4 f f f | e2 d | d c4 c | d4. (a8) c2 | c }
  r4 f | d c c b | c8 (d e4) r e | g f f f | e2 d | d f4 d | e (f g) c, | c2 \bar "|."
}

tenor = \relative c' {
  \global \set Staff.midiPanPosition = -1 \set midiInstrument = "viola"
  \repeat volta 2 { c2 | c4 a bes a | g2 f | f a4 c | bes (a2) g4 | a2 }
  r4 c | bes a a g | g2 r4 g | g a bes a | g2 fis | g c4 bes | a2 g | a2 \bar "|."
}

bass = \relative c {
  \global \set Staff.midiPanPosition = 1 \set midiInstrument = "cello"
  \repeat volta 2 { f2  | f4 f bes f | c2 d | bes f'4 e | d2 c | f, }
  r4 f' | g a f g | c,2 r4 c | e f bes, f' | c2 d | g, a4 bes | c2 c | f,2 \bar "|."
}

verse = \lyricmode {
  Es ist ein Ros ent -- sprun -- gen
  aus ei -- ner Wur -- zel zart,
  Und hat ein Blüm -- lein bracht,
  mit -- ten im kal -- ten Win -- ter,
  wohl zu der hal -- ben Nacht.
}
verseR = \lyricmode {
  Wie uns die Al -- ten sun -- gen,
  von Jes -- se kam die Art,
}

\score {
  \new ChoirStaff <<
    \new Staff \with { \consists "Merge_rests_engraver" }
    <<
      \new Voice = "soprano" { \voiceOne \soprano }
      \addlyrics { \verse }
      \addlyrics { \verseR }
      \new Voice = "alto" { \voiceTwo \alto }
    >>
    \new Staff \with { \consists "Merge_rests_engraver" }
    <<
      \clef bass
      \new Voice = "tenor" { \voiceOne \tenor }
      \new Voice = "bass" { \voiceTwo \bass }
    >>
  >>
  \layout { }
}
\score { \unfoldRepeats { << \soprano \\ \alto \\ \tenor \\ \bass >> }
  \midi {
    \tempo 4=100
    \context { \Score midiChannelMapping = #'instrument }
    \context { \Staff \remove "Staff_performer" }
    \context { \Voice \consists "Staff_performer" }
  }
}

Colors (colours), size reduction of score and spacing of staff, chord names, lyrics.

\paper { paper-width = 220\mm tagline = ##f }
\layout { \context { \Staff      \override VerticalAxisGroup.default-staff-staff-spacing = #'(( 0 0 0 0)) }
          \context { \ChordNames \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = 0 }
          \context { \Lyrics     \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.basic-distance = 0 }
}
global = { \key d \major \time 4/4 }
bn = \once \override Score.BarNumber.break-visibility = ##(#t #t #t)
blu = { \override NoteHead.color = #blue        \override Stem.color = #blue        \override Beam.color = #blue }
grn = { \override NoteHead.color = #darkgreen   \override Stem.color = #darkgreen   \override Beam.color = #darkgreen }
mag = { \override NoteHead.color = #darkmagenta \override Stem.color = #darkmagenta \override Beam.color = #darkmagenta }
red = { \override NoteHead.color = #red         \override Stem.color = #red         \override Beam.color = #red
        \override Script.color   = #red }
canonA = { \blu fis4 e d cis | b a b cis | }
canonB = { \grn d cis b a | g fis g e | }
canonC = { \mag d8 fis a g fis d fis e | d b d a' g b a g | }
ViolinI = \relative c'' {
  \global
  \set Staff.midiPanPosition = -1 \set midiInstrument = "violin" \set Staff.instrumentName = "Violin I"
  R1*2 | \bn \canonA \canonB \bn \canonC
  \red fis8 d e cis' d fis a a, \bn | b g a fis d [d' d8.\trill cis16] |
}
ViolinII = \relative c'' {
  \global
  \set Staff.midiPanPosition = -0.5 \set midiInstrument = "violin" \set Staff.instrumentName = "Violin II"
  R1*4 | \canonA \canonB \canonC
}
ViolinIII = \relative c'' {
  \global
  \set Staff.midiPanPosition = 0.5 \set midiInstrument = "violin" \set Staff.instrumentName = "Violin III"
  R1*6 | \canonA \canonB
}
kords = \chordmode { \set ChordNames.midiInstrument = "acoustic guitar (steel)"
  d,4 a, b, fis, | g, d, g, a, | \set noChordSymbol = "(...)" r4
}
Cello = \relative c {
  \global \clef bass
  \set Staff.midiPanPosition = 1 \set midiInstrument = "cello" \set Staff.instrumentName = "Cello"
  \repeat unfold 5 { d4 a b fis | g d g a | }
}

\score {
  <<
    \new Staff \with { \magnifyStaff #2/3 } \ViolinI
    \new Staff \with { \magnifyStaff #2/3 } \ViolinII
    \new Staff \with { \magnifyStaff #2/3 } \ViolinIII
    \new ChordNames \kords
    \new Staff \with { \magnifyStaff #2/3 } \Cello
    \new Lyrics
    \lyricmode { I V vi iii IV I IV V (...) }
  >>
  \layout {
    \context ChordNames { \override ChordName #'font-size = -1 }
    \context Lyrics { \override LyricText #'font-size = -1 }
  }
}
\score { << \ViolinI \\ \ViolinII \\ \ViolinIII \\ \kords \\ \Cello >>
  \midi { \tempo 4 = 56
    \context { \Score midiChannelMapping = #'instrument }
    \context { \Staff \remove "Staff_performer" }
    \context { \Voice \consists "Staff_performer" }
  }
}

\paper { paper-width = 220\mm tagline = ##f }
\layout { \context { \Staff      \override VerticalAxisGroup.default-staff-staff-spacing = #'(( 0 0 0 0)) }
          \context { \ChordNames \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = 0 }
          \context { \Lyrics     \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.basic-distance = 0 }
}
global = { \key d \major \time 4/4 }
bn = \once \override Score.BarNumber.break-visibility = ##(#t #t #t)
blu = { \override NoteHead.color = #blue        \override Stem.color = #blue        \override Beam.color = #blue }
grn = { \override NoteHead.color = #darkgreen   \override Stem.color = #darkgreen   \override Beam.color = #darkgreen }
mag = { \override NoteHead.color = #darkmagenta \override Stem.color = #darkmagenta \override Beam.color = #darkmagenta }
red = { \override NoteHead.color = #red         \override Stem.color = #red         \override Beam.color = #red
        \override Script.color   = #red }
canonA = { \blu fis4 e d cis | b a b cis | }
canonB = { \grn d cis b a | g fis g e | }
canonC = { \mag d8 fis a g fis d fis e | d b d a' g b a g | }
ViolinI = \relative c'' {
  \global
  \set Staff.midiPanPosition = -1 \set midiInstrument = "violin" \set Staff.instrumentName = "Violin I"
  R1*2 | \bn \canonA \canonB \bn \canonC
  \red fis8 d e cis' d fis a a, \bn | b g a fis d [d' d8.\trill cis16] |
}
ViolinII = \relative c'' {
  \global
  \set Staff.midiPanPosition = -0.5 \set midiInstrument = "violin" \set Staff.instrumentName = "Violin II"
  R1*4 | \canonA \canonB \canonC
}
ViolinIII = \relative c'' {
  \global
  \set Staff.midiPanPosition = 0.5 \set midiInstrument = "violin" \set Staff.instrumentName = "Violin III"
  R1*6 | \canonA \canonB
}
kords = \chordmode { \set ChordNames.midiInstrument = "acoustic guitar (steel)"
  d,4 a, b, fis, | g, d, g, a, | \set noChordSymbol = "(...)" r4
}
Cello = \relative c {
  \global \clef bass
  \set Staff.midiPanPosition = 1 \set midiInstrument = "cello" \set Staff.instrumentName = "Cello"
  \repeat unfold 5 { d4 a b fis | g d g a | }
}

\score {
  <<
    \new Staff \with { \magnifyStaff #2/3 } \ViolinI
    \new Staff \with { \magnifyStaff #2/3 } \ViolinII
    \new Staff \with { \magnifyStaff #2/3 } \ViolinIII
    \new ChordNames \kords
    \new Staff \with { \magnifyStaff #2/3 } \Cello
    \new Lyrics
    \lyricmode { I V vi iii IV I IV V (...) }
  >>
  \layout {
    \context ChordNames { \override ChordName #'font-size = -1 }
    \context Lyrics { \override LyricText #'font-size = -1 }
  }
}
\score { << \ViolinI \\ \ViolinII \\ \ViolinIII \\ \kords \\ \Cello >>
  \midi { \tempo 4 = 56
    \context { \Score midiChannelMapping = #'instrument }
    \context { \Staff \remove "Staff_performer" }
    \context { \Voice \consists "Staff_performer" }
  }
}

Temporary polyphony (left hand bars 7–13)

\header { tagline = ##f }
\layout { indent = 0\cm
  \context { \Score \remove "Bar_number_engraver" }
  \context { \Voice \remove "Dynamic_engraver" }
}
global = { \key g \major \time 4/4 }

sopranoVoice = \relative c'' { \autoBeamOff
  \global
  \repeat volta 2 { g4 g8 g fis4 e8 [fis] | g2 a |
  b4 c8 [b] a4 e8 [fis] | g2. r4 | }
  b4 b8 b8 c4 g8 [a] | b2. r4 |
  b4 b8 b8 c4 d8 c | b2 r4 b4 |
  g4 g8 g fis4 e8 fis | g2 (a) |
  b4 c8 [b] a4 e8 [fis] | g2. r4
  b4 c8 [b] a4 e8 [fis] | g2. r4 \bar "|."
}

verse = \lyricmode {
  E tan -- gi a -- na ko -- e
  Hi -- ne e hi -- ne
   -- ti  pōu -- ri   No -- ho i te a -- ro -- ha
  Te ngā -- kau o te ma -- tu -- a
  Hi -- ne e hi -- ne,
  Hi -- ne e hi -- ne.
}
verseR = \lyricmode {
  Kua nge -- nge a -- na ko -- e
  Hi -- ne e hi -- ne.
}

right = \relative c'' {
  \global
  \repeat volta 2 {r8 g\pp b \acciaccatura e d r fis, a \acciaccatura e' d | r8 g, b \acciaccatura e d r fis, a \acciaccatura e' d |
  r8 d, g \acciaccatura c b r fis a \acciaccatura e' d | r8 g, b \acciaccatura e d r g, b \acciaccatura e d | }
  r8 <g, e b> <b g e> \acciaccatura a' <g e b> r <a, e c> <c a e> \acciaccatura b' <a e c> |
  r8 <fis, dis b> <b fis dis> \acciaccatura g' <fis dis b> r <fis, dis b> <b fis dis> \acciaccatura g' <fis dis b> |
  r8 <b, g> <a fis> <g e> r <c e,> <b d,> <a e> | dis, fis \acciaccatura a g fis r <b fis> \acciaccatura a g fis |
  r8 <g e> <b g> < g e> r <g e b> r <a fis d> |
  r8 <b g> <d b> \acciaccatura a' <g d b> r <b, g> <d b> \acciaccatura a' <g d b> |
  r8 <c, g> <e c> \acciaccatura a <g e> r <d c> <a' c,> r |
  r <b, g> <d b> \acciaccatura a' <g d b> r <b, g> <d b> \acciaccatura a' <g d b>
  r <c, g> <e c> \acciaccatura a <g e> r <d, c> <a' c,> r8 | <b g d>2. r4 \bar "|."
}

left = \relative c' {
  \global
  \repeat volta 2 { \repeat unfold 4 { <b d, g,>2\arpeggio\pp <c d, g,>\arpeggio | } }
  <e, e,> <a a,> | <fis b,> <fis b,> | << { e r8 a b c | b1~ | b4 r } \\ { e,2 a, | b dis |e } >> e4 d |
  << { g2 fis | e d | d d | e4. e8 a4 d, | } \\ { g,1~ | g1 | g1~ | g1 | } >> <b' d, g,>2. r4 \bar "|."
}

sopranoVoicePart = \new Staff \with {
  midiInstrument = "flute"
} { \sopranoVoice }
\addlyrics { \verse }
\addlyrics { \verseR }

pianoPart = \new PianoStaff <<
  \new Staff = "right" \with {
    midiInstrument = "celesta"
  } \right
  \new Staff = "left" \with {
    midiInstrument = "celesta"
  } { \clef bass \left }
>>

\score {
  <<
    \sopranoVoicePart
    \pianoPart
  >>
  \layout { }
}
\score { \unfoldRepeats { << \sopranoVoicePart \\ \pianoPart >> }
  \midi { \tempo 4=66 }
}

\header { tagline = ##f }
\layout { indent = 0\cm
  \context { \Score \remove "Bar_number_engraver" }
  \context { \Voice \remove "Dynamic_engraver" }
}
global = { \key g \major \time 4/4 }

sopranoVoice = \relative c'' { \autoBeamOff
  \global
  \repeat volta 2 { g4 g8 g fis4 e8 [fis] | g2 a |
  b4 c8 [b] a4 e8 [fis] | g2. r4 | }
  b4 b8 b8 c4 g8 [a] | b2. r4 |
  b4 b8 b8 c4 d8 c | b2 r4 b4 |
  g4 g8 g fis4 e8 fis | g2 (a) |
  b4 c8 [b] a4 e8 [fis] | g2. r4
  b4 c8 [b] a4 e8 [fis] | g2. r4 \bar "|."
}

verse = \lyricmode {
  E tan -- gi a -- na ko -- e
  Hi -- ne e hi -- ne
  Kā -- ti tō pōu -- ri rā
  No -- ho i te a -- ro -- ha
  Te ngā -- kau o te ma -- tu -- a
  Hi -- ne e hi -- ne,
  Hi -- ne e hi -- ne.
}
verseR = \lyricmode {
  Kua nge -- nge a -- na ko -- e
  Hi -- ne e hi -- ne.
}

right = \relative c'' {
  \global
  \repeat volta 2 {r8 g\pp b \acciaccatura e d r fis, a \acciaccatura e' d | r8 g, b \acciaccatura e d r fis, a \acciaccatura e' d |
  r8 d, g \acciaccatura c b r fis a \acciaccatura e' d | r8 g, b \acciaccatura e d r g, b \acciaccatura e d | }
  r8 <g, e b> <b g e> \acciaccatura a' <g e b> r <a, e c> <c a e> \acciaccatura b' <a e c> |
  r8 <fis, dis b> <b fis dis> \acciaccatura g' <fis dis b> r <fis, dis b> <b fis dis> \acciaccatura g' <fis dis b> |
  r8 <b, g> <a fis> <g e> r <c e,> <b d,> <a e> | dis, fis \acciaccatura a g fis r <b fis> \acciaccatura a g fis |
  r8 <g e> <b g> < g e> r <g e b> r <a fis d> |
  r8 <b g> <d b> \acciaccatura a' <g d b> r <b, g> <d b> \acciaccatura a' <g d b> |
  r8 <c, g> <e c> \acciaccatura a <g e> r <d c> <a' c,> r |
  r <b, g> <d b> \acciaccatura a' <g d b> r <b, g> <d b> \acciaccatura a' <g d b>
  r <c, g> <e c> \acciaccatura a <g e> r <d, c> <a' c,> r8 | <b g d>2. r4 \bar "|."
}

left = \relative c' {
  \global
  \repeat volta 2 { \repeat unfold 4 { <b d, g,>2\arpeggio\pp <c d, g,>\arpeggio | } }
  <e, e,> <a a,> | <fis b,> <fis b,> | << { e r8 a b c | b1~ | b4 r } \\ { e,2 a, | b dis |e } >> e4 d |
  << { g2 fis | e d | d d | e4. e8 a4 d, | } \\ { g,1~ | g1 | g1~ | g1 | } >> <b' d, g,>2. r4 \bar "|."
}

sopranoVoicePart = \new Staff \with {
  midiInstrument = "flute"
} { \sopranoVoice }
\addlyrics { \verse }
\addlyrics { \verseR }

pianoPart = \new PianoStaff <<
  \new Staff = "right" \with {
    midiInstrument = "celesta"
  } \right
  \new Staff = "left" \with {
    midiInstrument = "celesta"
  } { \clef bass \left }
>>

\score {
  <<
    \sopranoVoicePart
    \pianoPart
  >>
  \layout { }
}
\score { \unfoldRepeats { << \sopranoVoicePart \\ \pianoPart >> }
  \midi { \tempo 4=66 }
}

Repeat unfold for printed notes; trills both printed normally and executed in MIDI.

Lyrics above staff, temporary polyphony in right hand/melody and consequently complicated lyrics alignment.

\header { tagline = ##f }
\layout { indent = 0
  \context { \Score \remove "Bar_number_engraver" }
  \context { \Voice \consists "Melody_engraver"}
}

global = { \key f \major \numericTimeSignature \time 3/4 }

sopranoVoice = \relative c'' << {
  \global \autoBeamOff \set midiInstrument = "flute" \set Score.tempoHideNote = ##t \tempo 4 = 102
  \repeat volta 2 { <c a> <c a>8 [(<a f>)] <d bes> [(<bes g>)] | <c a>4 <c a>8 [(<a f>)] <d bes> [(<bes g>)] |
    <c a>4 << { \voiceOne a8 [(c)] g [(a)] | f2. } \new Voice { \voiceTwo f4 e | f2. } >> | \oneVoice }
  f4 a8 f << { \voiceOne a c } \new Voice { \voiceTwo e,4 } >> | \oneVoice <f d>4 <a c,>8 f g c, |
  f4 a8 f <a e> c | <f, d>4 a8 f <g e> c, |
  \tempo 4 = 82 << { \voiceOne c'4 a8 [(c)] g [(a)] } \new Voice { \voiceTwo <f c>2 e4 } >> | \oneVoice f2 r4 \bar "|."
} >>

verse =
  \lyricmode {
  Kom -- met,_ ihr_ Hir -- ten,_ ihr_ Män -- ner_ und_ Fraun,
  Chri -- stus, der Herr, ist heu -- te ge -- bo -- ren,
  Den Gott zum Hei -- land euch hat er -- ko -- ren.
  Fürch -- tet__ euch__ nicht!
  }
verseR = \lyricmode { Kom -- met,_ das_ lieb -- li_ -- che_ Kind -- lein_ zu_ schaun, }

left = \relative c { \set midiInstrument = "clarinet"
  \global
  \repeat volta 2 {f,8 c' f4 <f bes,> | f,8 c' f4 <f bes,> |
    f,8 c' f4 <bes c,> | << { \voiceOne a4 bes g } \new Voice { \voiceTwo f2. } >> | }
  \oneVoice r4 d' c | bes f e | <a d,>2 <a c,>4 | <a d,>2 <bes c,>4 | a,8 bes c4 <c bes'> | <a' f> f, r4 \bar "|."
}

\score {
  \new PianoStaff <<
    \new Staff = "right" <<
      \new Voice = "sopVoice" { << \sopranoVoice >> }
    >>
    \new Lyrics = "lycontextI" \with { alignAboveContext = #"right" }
    \new Lyrics = "lycontextII" \with { alignAboveContext = #"right" }
    \context Lyrics = "lycontextI"
      { \lyricsto "sopVoice" { \verse } }
    \context Lyrics = "lycontextII"
      { \lyricsto "sopVoice" { \verseR } }
    \new Staff = "left" <<
      \clef bass
      \left
    >>
  >>
  \layout { }
}
\score { \unfoldRepeats { << \sopranoVoice \\ \left >> }
  \midi {
  \context { \Score midiChannelMapping = #'instrument }
  \context { \Staff \remove "Staff_performer" }
  \context { \Voice \consists "Staff_performer" }
  }
}

\header { tagline = ##f }
\layout { indent = 0
  \context { \Score \remove "Bar_number_engraver" }
  \context { \Voice \consists "Melody_engraver"}
}

global = { \key f \major \numericTimeSignature \time 3/4 }

sopranoVoice = \relative c'' << {
  \global \autoBeamOff \set midiInstrument = "flute" \set Score.tempoHideNote = ##t \tempo 4 = 102
  \repeat volta 2 { <c a> <c a>8 [(<a f>)] <d bes> [(<bes g>)] | <c a>4 <c a>8 [(<a f>)] <d bes> [(<bes g>)] |
    <c a>4 << { \voiceOne a8 [(c)] g [(a)] | f2. } \new Voice { \voiceTwo f4 e | f2. } >> | \oneVoice }
  f4 a8 f << { \voiceOne a c } \new Voice { \voiceTwo e,4 } >> | \oneVoice <f d>4 <a c,>8 f g c, |
  f4 a8 f <a e> c | <f, d>4 a8 f <g e> c, |
  \tempo 4 = 82 << { \voiceOne c'4 a8 [(c)] g [(a)] } \new Voice { \voiceTwo <f c>2 e4 } >> | \oneVoice f2 r4 \bar "|."
} >>

verse =
  \lyricmode {
  Kom -- met,_ ihr_ Hir -- ten,_ ihr_ Män -- ner_ und_ Fraun,
  Chri -- stus, der Herr, ist heu -- te ge -- bo -- ren,
  Den Gott zum Hei -- land euch hat er -- ko -- ren.
  Fürch -- tet__ euch__ nicht!
  }
verseR = \lyricmode { Kom -- met,_ das_ lieb -- li_ -- che_ Kind -- lein_ zu_ schaun, }

left = \relative c { \set midiInstrument = "clarinet"
  \global
  \repeat volta 2 {f,8 c' f4 <f bes,> | f,8 c' f4 <f bes,> |
    f,8 c' f4 <bes c,> | << { \voiceOne a4 bes g } \new Voice { \voiceTwo f2. } >> | }
  \oneVoice r4 d' c | bes f e | <a d,>2 <a c,>4 | <a d,>2 <bes c,>4 | a,8 bes c4 <c bes'> | <a' f> f, r4 \bar "|."
}

\score {
  \new PianoStaff <<
    \new Staff = "right" <<
      \new Voice = "sopVoice" { << \sopranoVoice >> }
    >>
    \new Lyrics = "lycontextI" \with { alignAboveContext = #"right" }
    \new Lyrics = "lycontextII" \with { alignAboveContext = #"right" }
    \context Lyrics = "lycontextI"
      { \lyricsto "sopVoice" { \verse } }
    \context Lyrics = "lycontextII"
      { \lyricsto "sopVoice" { \verseR } }
    \new Staff = "left" <<
      \clef bass
      \left
    >>
  >>
  \layout { }
}
\score { \unfoldRepeats { << \sopranoVoice \\ \left >> }
  \midi {
  \context { \Score midiChannelMapping = #'instrument }
  \context { \Staff \remove "Staff_performer" }
  \context { \Voice \consists "Staff_performer" }
  }
}

Repeats in melody and text, properly.

\paper { paper-width = 160\mm tagline = ##f }
\layout { indent = 0 \context { \Score \remove "Bar_number_engraver" } }
\language "deutsch"
global = { \key a \major \time 3/4 \partial 4. \autoBeamOff }

sopranoVoice = \relative c' { \global \voiceOne \set Staff.midiInstrument = "clarinet"
  \repeat volta 2 { e8 e e | a4 cis h8 a | h4 r8 }
  \repeat volta 2 {
    cis8 a h | cis [( e )] d \breathe
    cis h a | h [( d )] cis \breathe h a } \alternative { { h | cis4 r8 } { gis | a4 r8 \bar "|." } }
}

verse = \new Lyrics \lyricmode {
  << { Kein schö -- ner Land in die -- ser Zeit, }
     \new Lyrics \lyricmode { als hier das uns -- re weit und breit, }
  >>
  \repeat volta 2 \lyricmode { Wo wir uns fin -- den
  wohl un -- ter Lin -- den
  zur A -- } \alternative { { bend -- zeit! } { bend -- zeit! } }
}

altoVoice = \relative c' { \global \voiceTwo
  \repeat volta 2 { e8 e e | cis4 a' gis8 fis | gis4 r8 }
  \repeat volta 2 {
    a8 a gis | a [( cis )] h
    a gis a | gis [( h )] a gis a } \alternative { { gis | e4 r8 } { e | cis4 r8 \bar "|." } }
}

\score {
  \new Staff \with { \consists "Merge_rests_engraver" }
  <<
    \new Voice { \sopranoVoice }
    \addlyrics { \verse }
    \new Voice { \altoVoice }
  >>
  \layout { }
}
\score { \unfoldRepeats { << \sopranoVoice \\ \altoVoice >> }
  \midi { \tempo 4=90 }
}

\paper { paper-width = 160\mm tagline = ##f }
\layout { indent = 0 \context { \Score \remove "Bar_number_engraver" } }
\language "deutsch"
global = { \key a \major \time 3/4 \partial 4. \autoBeamOff }

sopranoVoice = \relative c' { \global \voiceOne \set Staff.midiInstrument = "clarinet"
  \repeat volta 2 { e8 e e | a4 cis h8 a | h4 r8 }
  \repeat volta 2 {
    cis8 a h | cis [( e )] d \breathe
    cis h a | h [( d )] cis \breathe h a } \alternative { { h | cis4 r8 } { gis | a4 r8 \bar "|." } }
}

verse = \new Lyrics \lyricmode {
  << { Kein schö -- ner Land in die -- ser Zeit, }
     \new Lyrics \lyricmode { als hier das uns -- re weit und breit, }
  >>
  \repeat volta 2 \lyricmode { Wo wir uns fin -- den
  wohl un -- ter Lin -- den
  zur A -- } \alternative { { bend -- zeit! } { bend -- zeit! } }
}

altoVoice = \relative c' { \global \voiceTwo
  \repeat volta 2 { e8 e e | cis4 a' gis8 fis | gis4 r8 }
  \repeat volta 2 {
    a8 a gis | a [( cis )] h
    a gis a | gis [( h )] a gis a } \alternative { { gis | e4 r8 } { e | cis4 r8 \bar "|." } }
}

\score {
  \new Staff \with { \consists "Merge_rests_engraver" }
  <<
    \new Voice { \sopranoVoice }
    \addlyrics { \verse }
    \new Voice { \altoVoice }
  >>
  \layout { }
}
\score { \unfoldRepeats { << \sopranoVoice \\ \altoVoice >> }
  \midi { \tempo 4=90 }
}

Repeat melody with 2-verse text, properly, in a choral setting, requiring alignBelowContext.

\header { tagline = ##f }
\layout { indent = 0
  \context { \Score \remove "Bar_number_engraver" }
  \context { \Voice \remove "Dynamic_engraver" }
}
global = { \key f \major \time 3/4 }

sopVoice = \new Voice = "sopvoice" \relative c' {
  \global \voiceOne \set Score.midiInstrument = "church organ" { \clef treble
  \repeat volta 2 { f2 f4 | f( e) f | g( a) g | f2. | a2 a4 | a( g) a | c( bes) a | a g r }
  g2 a4 | bes( a) g | a2 bes4 | c2. | d2 d4 | c( bes) a | bes( a) g | f2. \bar "|." }
}
altVoice = \new Voice \relative c' {
  \global \voiceTwo {
  \repeat volta 2 { c2\p c4 | c2 c4 | d( c) c | a2. | f'2 f4 | f( e) f | g2 f4 | f e r }
  e2 f4 | d2 e4 | f2 f4 | e2. | f2 f4 | e2 f4 | f2 e4 | f2. }
}
verse = \new Lyrics = "firstVerse" \lyricsto "sopvoice" {
  << { \set stanza = #"1." Gro -- ßer Gott, wir lo -- ben dich;
    Herr, wir prei -- sen dei -- ne Stär -- ke. }
    \new Lyrics = "secondVerse" \with { alignBelowContext = "firstverse" } { \set associatedVoice = "sopvoice"
      Vor dir neigt die Er -- de sich
      und be -- wun -- dert dei -- ne Wer -- ke. }
  >>
  Wie du warst vor al -- ler Zeit,
  so bleibst du in E -- wig -- keit.
}
tenVoice = \new Voice \relative c'
  { \global \voiceThree { \clef bass
  \repeat volta 2 { a2\p a4 | a( g) f | f2 e4 | f2. | c'2 c4 | c2 c4 | c2 c4 | c c r }
  c2 c4 | bes2 c4 | c2 bes4 | c2. | bes2 bes4 | g2 f4 | d'( c) c | a2. }
}
basVoice = \new Voice \relative c
  { \global \voiceFour {
  \repeat volta 2 { f2\p f4 | f( c) a | bes( c) c | f,2. | f'2 f4 | f( c) f | e2 f4 | c' c, r }
  c2 a4 | g2 c4 | f4( e) d | c2. | bes2 bes4 | c2 d4 | bes( c) c | f2. }
}

\score {
  \new ChoirStaff <<
    \new Staff \with { \consists "Merge_rests_engraver" }
    <<
      { \sopVoice }
      { \altVoice }
      \context Lyrics = "sopvoice" { \lyricsto "sopvoice" { \verse } }
    >>
    \new Staff \with { \consists "Merge_rests_engraver" }
    <<
      { \tenVoice }
      { \basVoice }
    >>
  >>
  \layout { }
}

\score { \unfoldRepeats { << \sopVoice \\ \altVoice \\ \tenVoice \\ \basVoice >> }
  \midi { \tempo 4 = 108 }
}

\header { tagline = ##f }
\layout { indent = 0
  \context { \Score \remove "Bar_number_engraver" }
  \context { \Voice \remove "Dynamic_engraver" }
}
global = { \key f \major \time 3/4 }

sopVoice = \new Voice = "sopvoice" \relative c' {
  \global \voiceOne \set Score.midiInstrument = "church organ" { \clef treble
  \repeat volta 2 { f2 f4 | f( e) f | g( a) g | f2. | a2 a4 | a( g) a | c( bes) a | a g r }
  g2 a4 | bes( a) g | a2 bes4 | c2. | d2 d4 | c( bes) a | bes( a) g | f2. \bar "|." }
}
altVoice = \new Voice \relative c' {
  \global \voiceTwo {
  \repeat volta 2 { c2\p c4 | c2 c4 | d( c) c | a2. | f'2 f4 | f( e) f | g2 f4 | f e r }
  e2 f4 | d2 e4 | f2 f4 | e2. | f2 f4 | e2 f4 | f2 e4 | f2. }
}
verse = \new Lyrics = "firstVerse" \lyricsto "sopvoice" {
  << { \set stanza = #"1." Gro -- ßer Gott, wir lo -- ben dich;
    Herr, wir prei -- sen dei -- ne Stär -- ke. }
    \new Lyrics = "secondVerse" \with { alignBelowContext = "firstverse" } { \set associatedVoice = "sopvoice"
      Vor dir neigt die Er -- de sich
      und be -- wun -- dert dei -- ne Wer -- ke. }
  >>
  Wie du warst vor al -- ler Zeit,
  so bleibst du in E -- wig -- keit.
}
tenVoice = \new Voice \relative c'
  { \global \voiceThree { \clef bass
  \repeat volta 2 { a2\p a4 | a( g) f | f2 e4 | f2. | c'2 c4 | c2 c4 | c2 c4 | c c r }
  c2 c4 | bes2 c4 | c2 bes4 | c2. | bes2 bes4 | g2 f4 | d'( c) c | a2. }
}
basVoice = \new Voice \relative c
  { \global \voiceFour {
  \repeat volta 2 { f2\p f4 | f( c) a | bes( c) c | f,2. | f'2 f4 | f( c) f | e2 f4 | c' c, r }
  c2 a4 | g2 c4 | f4( e) d | c2. | bes2 bes4 | c2 d4 | bes( c) c | f2. }
}

\score {
  \new ChoirStaff <<
    \new Staff \with { \consists "Merge_rests_engraver" }
    <<
      { \sopVoice }
      { \altVoice }
      \context Lyrics = "sopvoice" { \lyricsto "sopvoice" { \verse } }
    >>
    \new Staff \with { \consists "Merge_rests_engraver" }
    <<
      { \tenVoice }
      { \basVoice }
    >>
  >>
  \layout { }
}

\score { \unfoldRepeats { << \sopVoice \\ \altVoice \\ \tenVoice \\ \basVoice >> }
  \midi { \tempo 4 = 108 }
}