Freu dich erlöste Christenheit

Zur Navigation springen Zur Suche springen


Lilypond-Code

\version "2.20.0"
\language "deutsch"
make-midi-list =
#(define-void-function (name score tempolist)
   ((string? #f) ly:score? list?)
   (for-each
    (lambda (tempo)
      (ly:book-process
       (apply
        ly:make-book
        $defaultpaper
        $defaultheader
        (list score))
       $defaultpaper
       #{
         \midi {
           \tempo 4 = $tempo
         }
       #}
       (format #f "~a_~a"
         (or name "midi")
         tempo)))
    tempolist))

#(define ((chord-name->german-markup-text-alteration B-instead-of-Bb) pitch lowercase?)

   (define (pitch-alteration-semitones pitch)
     (inexact->exact (round (* (ly:pitch-alteration pitch) 2))))

   (define (conditional-string-downcase str condition)
     (if condition
         (string-downcase str)
         str))

   (let* ((name (ly:pitch-notename pitch))
          (alt-semitones  (pitch-alteration-semitones pitch))
          (n-a (if (member (cons name alt-semitones) `((6 . -1) (6 . -1)))
                   (cons 7 (+ (if B-instead-of-Bb 1 1) alt-semitones))
                   (cons name alt-semitones))))
     (make-line-markup
      (list
       (make-simple-markup
        (conditional-string-downcase
         (vector-ref #("C" "D" "E" "F" "G" "A" "H" "B") (car n-a))
         lowercase?))
       (let ((alteration (/ (cdr n-a) 2)))
         (cond
          ((and (equal? lowercase? #f) (= alteration FLAT) (= (car n-a) 7)) (make-simple-markup ""))
          ((and (= alteration FLAT) (or (= (car n-a) 5) (= (car n-a) 2) )) (make-simple-markup "s"))
          ((= alteration FLAT) (make-simple-markup "es"))
          ((and (= alteration DOUBLE-FLAT) (or (= (car n-a) 5)(= (car n-a) 2) )) (make-simple-markup "ses"))
          ((= alteration DOUBLE-FLAT) (make-simple-markup "eses"))
          ((= alteration SHARP) (make-simple-markup "is"))
          ((= alteration DOUBLE-SHARP) (make-simple-markup "isis"))
          (else empty-markup)))))))

#(define germanChords (chord-name->german-markup-text-alteration #t))

\layout {
  \context {
    \Voice
    beamExceptions = #'()
    \override BreathingSign.text =
    \markup { \musicglyph #"scripts.lvarcomma" }
    \override Stem.neutral-direction = #down
    \override Script.outside-staff-priority = #'()
    \override Script.padding = #1
    \override Tie.thickness = #1
    \override PhrasingSlur.thickness = #3
    \override Rest.voiced-position = #0
    \override MultiMeasureRest.expand-limit = #3
  }
  \context {
    \Staff
    printPartCombineTexts = ##f
    beamExceptions = #'()
    \override BreathingSign.text =
    \markup { \musicglyph #"scripts.lvarcomma" }
    \override InstrumentName.font-features = #'("smcp")
  }
  \context {
    \Score
    \override VerticalAxisGroup.remove-first = ##t
    skipBars = ##f
    \override MetronomeMark.font-size = #1
    \override MetronomeMark.font-shape = #'caps
    \override BarLine.thick-thickness = 5
    \override Timing.beamExceptions = #'()
    barNumberVisibility = #all-bar-numbers-visible
    \override BarNumber.color = #(rgb-color 0.7 0.7 0.7)
    \override BarNumber.layer = #-200
    \override BarNumber.padding = #0.4
    \override BarNumber.outside-staff-priority =#'()
    \override BarNumber.after-line-breaking = ##f
    \override BarNumber.font-size = #-1
    \override BarNumber.font-series = #'bold
    \override BarNumber.self-alignment-X = #0
    \override BarNumber.break-visibility = #end-of-line-invisible
  }
  \context {
    \ChordNames
    chordNameLowercaseMinor = ##f
    \remove Staff_performer
    chordRootNamer = #germanChords
    \override ChordName.font-name = #"Orator10 BT"
    chordNoteNamer = #(chord-name->german-markup #f)
    \override ChordName.X-offset =
    #ly:self-alignment-interface::aligned-on-x-parent
    \override ChordName.self-alignment-X = #CENTER
    \override ChordName.font-name = #"Arial Narrow"
    \override ChordName.layer = #2
    \override ChordName.font-size = #-0.5
    noChordSymbol = ##f
  }
  \context {
    \Lyrics
    \override VerticalAxisGroup.staff-affinity = #CENTER
  }
} 
sop = \relative c' {
  \override Score.RehearsalMark.break-align-symbols = #'(time-signature)
  \once \override Score.RehearsalMark.self-alignment-X = #-1
  \mark \markup { \fontsize #-3.5 \note {4} #UP }
  \time 4/4
  \key g \major
  \partial 4
  d4 d g e e
  d c h \breathe g'
  g e8( fis) g4 ( a)
  g2 r4 g
  h4 a g g
  fis fis e \breathe a
  fis e d \breathe d
  g a h g a2 g4
  \bar "|."
}

alt = \relative c' {
  h4 h d c2
  a g4 h
  d c h c h2 s4 h
  d c h e
  e dis e cis
  d cis a h
  h e dis h
  e d h4
}

ten = \relative c' {
  \key g \major
  \clef bass
  g4 ~ g2 ~ g
  fis4 d2 d4 ~
  d g ~ g fis
  d2 r4 g4 ~
  g fis g2
  fis g4 \breathe e
  fis e d \breathe d
  e 2 fis4 e
  g4 fis g
}

bas = \relative c {
  r4 h2 c
  d4 fis, g h4
  h c e d
  h2 s4 d
  h d e c
  a h e a,4 ~
  a2 a4 h
  h c h2
  c4 d ~ d
}

Akk=
\chordmode {
  g4 g2 c
  d:7 g
  g4 c e:m d:7
  g2 s4 g
  g d:7 e:m c
  d:7 h e:m a
  d:7 a:7 d g
  e:m a:m h e:m
  c d g
}

Struktur =
{
  \override Score.NonMusicalPaperColumn.page-break-permission = ##f
  \override PianoStaff.VerticalAxisGroup.staff-staff-spacing.padding = #8
  \override Lyrics.VerticalAxisGroup.staff-affinity = #DOWN
  \override Score.SpacingSpanner.base-shortest-duration = #(ly:make-moment 1/16)
}

lyr = \lyricmode {
  Freu dich, er -- lös -- te Chris -- ten -- heit,
  freu dich und sin -- ge!
  Der Herr er -- stand in Herr -- lich -- keit,
  Hal -- le -- lu -- ja!
  Sing fröh -- lich: Hal -- le -- lu -- ja!
}

myTitel = "Freu dich, erlöste Christenheit"

kopf=\header {
  title = \markup \line
  {
    \myTitel
  }
  subtitle = "GL 337 (alt: 826)"
  poet = "T: Ernst Xaver Turin, 1799"
  composer = "M: Limburger Gesangbuch 1838"
  piece = "Notensatz: lilypond.miraheze.org"
}

\bookpart {
  \paper {
    top-margin = 35\mm
    ragged-right = ##f
    ragged-last = ##f
    ragged-bottom = ##t
    ragged-last-bottom = ##t
    bottom-margin = 15\mm
    indent = #0
    line-width = 150\mm
    print-all-headers = ##f
    #(include-special-characters)
    print-first-page-number = ##t
    first-page-number = #1
    oddFooterMarkup = ##f
    evenFooterMarkup = ##f
    oddHeaderMarkup = #oddFooterMarkup
    evenHeaderMarkup = #evenFooterMarkup
    markup-system-spacing.padding = #8
    system-system-spacing.padding = #8
    markup-markup-spacing.padding = #2
  }
  \kopf
  \score
  {
    <<
      \context ChordNames \Akk
      \new PianoStaff="leadsheet"
      <<
        \new Staff="Discant"
        <<
          \new Voice="Alt" { \voiceOne \sop }
          \new Voice { \voiceTwo \alt }
        >>
        \new Lyrics \lyricsto Alt \lyr
        \new Staff="Bass"
        <<
          \new Voice { \voiceOne \ten }
          \new Voice { \voiceTwo \bas }
          \new NullVoice \Struktur
        >>
      >>
    >>
  }
  \noPageBreak
  \markup \left-column \fontsize #1 {
    "Zum Einzug: bis Takt 4 (ge!), sehr getragen"
    "Zum Auszug: Takt 4 (Der) bis Schluss, sehr getragen"
  }
}