Preis und Ehre/D Dur

Zur Navigation springen Zur Suche springen


Lilypond-Code

\version "2.20.0"
\language "deutsch"
myTitel = "Preis und Ehre"

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 2 = $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
    barNumberVisibility = #all-bar-numbers-visible
    \override Timing.beamExceptions = #'()
    \override BarNumber.color = #(rgb-color 0.7 0.7 0.7)
    \override BarNumber.layer = #-200
    \override BarNumber.outside-staff-priority =#'()
    \override BarNumber.padding = #1
    \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
  }
}

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 #"2" #UP
  \time 3/2
  \key f \major
  \repeat volta 2
  {
    \once \override TextScript.X-offset = #-3.5
    f4%-\markup \fontsize #-2.5 \note #"2" #UP
    e d2 c
    f4 g a2 g \breathe
    b a f4 a
    g g f2 r
  }
  c' a g4 a
  b a g2 \breathe f4 g
  a2 g f4 e
  d2 c r
  f g a4 g
  a b c2 \breathe a4 c
  d2 c a4 f
  g2 f1
  \bar "|."
}

alt = \relative c' {
  \repeat volta 2
  {
    c2 b g
    b c1
    d2 c ~ c
    d4
    c c2 s
  }
  e1 d2
  f d d
  e d c
  b c s
  a c c
  f e d
  f e d
  d a1
}

ten = \relative c' {
  \key f \major
  \clef bass
  \repeat volta 2
  {
    a2 f e
    f ~ f e \breathe
    g e f ~
    f4 e a2 r
  }
  g a b
  f g \breathe a
  e b' a4 e
  f2 e r
  f e f
  g a \breathe a
  b g f
  d4 e f1
}

bas = \relative c {
  \repeat volta 2 {
    f4 c b2 c
    d a c
    b c d
    b4 c f2 s
  }
  c1 b2
  d b d
  c b c
  g a s
  d c a
  d c f
  b, c d4 c
  b2 f1
}

Akk=
\chordmode {
  f4 a:m b2 c
  b f c
  g:m a:m d:m
  b4 c f2 s
  c a:m g:m
  b g:m d:m
  a:m g:m f4 c
  g2:m a:m s
  d:m c a:m
  d:m a:m d:m
  b c d4:m f
  g2:m f
}

Struktur =
{
  \override Score.NonMusicalPaperColumn.page-break-permission = ##f
  \override PianoStaff.VerticalAxisGroup.staff-staff-spacing.padding = #12
  \override Lyrics.VerticalAxisGroup.staff-affinity = #CENTER
}

lyr = \lyricmode {
  Preis und Eh -- re Gott dem Her -- ren,
  Frie -- de soll den Men -- schen sein.
  Je -- sus Chris -- tus, Got -- tes Lamm,
  hö -- re gnä -- dig un -- ser Fle -- hen.
  Eh -- re sei dir mit dem Geist
  und dem Va -- ter in den Hö -- hen.
}

lyri = \lyricmode {
  Herr, wir lo -- ben, Herr, wir dan -- ken,
  be -- ten an den Na -- men dein.
}

kopf=\header {
  title = \markup \line
  {
    \myTitel
  }
  subtitle = "Gotteslob 486/171"
  subsubtitle = " "
  poet = "T: Maria Luise Thurmair"
  composer = "M: Heinrich Rohr"
  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 = 35\mm
    indent = #0
    line-width = 160\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 Lyrics \lyricsto Alt \lyri
        \new Staff="Bass"
        <<
          \new Voice { \voiceOne \ten }
          \new Voice { \voiceTwo \bas }
          \new NullVoice \Struktur
        >>
      >>
    >>
  }
}

\include "articulate.ly"

alle =
\score {
  \unfoldRepeats
  \new StaffGroup
  <<
    \new Staff {
      \new Voice {
        \set Staff.midiInstrument = "Church Organ"
        \sop
      }
    }
    \new Staff {
      \new Voice {
        \set Staff.midiInstrument = "Church Organ"
        \alt
      }
    }
    \new Staff {
      \new Voice {
        \set Staff.midiInstrument = "Church Organ"
        \clef bass
        \ten
      }
    }
    \new Staff {
      \new Voice {
        \set Staff.midiInstrument = "Church Organ"
        \clef bass
        \bas
      }
    }
  >>
}

\make-midi-list "preisehre" \alle #'(60 66 54)