Alles meinem Gott zu Ehren

Zur Navigation springen Zur Suche springen

Noten auf einer Seite

Alles meinem Gott zu Ehren.png

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
  }
}
myTitel = "Alles meinem Gott zu Ehren"
mycomp=\markup \line \fontsize #0 {
  "M: Melchior Ludolf Herold 1808"
}

sop = \relative c'' {
  \time 4/4
  \override Score.RehearsalMark.break-align-symbols = #'(time-signature)
  \override Score.TimeSignature.break-align-anchor-alignment = #CENTER
  \mark \markup { \fontsize #-3.5 \note #"2" #UP }
  \key g \major
  \numericTimeSignature
  \repeat volta 2 {
    g4 d e e
    d c h8( a) g4 \breathe
    g' e a g8( fis)
    e4 e d2
  }
  \breathe
  g4 a h g
  c8( h ) a( g) a4 d, \breathe
  g a h g
  c8( h ) a( g) a4 d,
  g fis e e
  a g fis2 \breathe
  g4 a h c8( h)
  a4 a g2
  \bar "|."
}

alt = \relative c' {
  \repeat volta 2 {
    h2 c
    a2 fis4 g
    d' cis d d ~
    d cis a2
  }
  d d
  d4 d d2
  d2 dis4 e
  d2 cis4 a
  e' d c d
  e2 d
  d d4 e
  e fis h,2
}

ten = \relative c {
  \key g \major
  \clef bass
  \repeat volta 2 {
    d4 g ~ g e
    fis e d e \breathe
    g a fis e
    h e fis2
  }
  \breathe
  g4 fis g2
  a4 h fis2
  d4 e dis e
  fis4 d cis fis
  e a g gis
  g! e fis2
  g4 fis g e
  e fis < g d >2
}

bas = \relative c {
  \override Fingering.direction = #UP
  \repeat volta 2 {
    g4 h c c
    a ~ a ~ a h
    h a ~ a h
    g a d2
  }
  h4 d h2
  d2 d
  h4 c h2
  a4 h a2
  h2 c4 h
  cis2 d
  h4 a g a
  c a h2
}

Akk=
\chordmode {
  g2 c4 a:m
  d a:m d e:m
  g a d e:m7
  q a d2
  g4 d g e:m
  d4:7 g d d:7
  g a:m h e:m
  d:7 g a d
  e:m h:m7 c e:7
  a a:7 d2
  g4 d g a:m
  q d g2
}

Struktur =
{
  \override Score.NonMusicalPaperColumn.page-break-permission = ##f
  \override PianoStaff.VerticalAxisGroup.staff-staff-spacing =
  #'((basic-distance . 20)
     (padding . 6))
}

lyr = \lyricmode {
  \set stanza = #"1."
  Al -- les mei -- nem Gott zu Eh -- ren
  in der Ar -- beit, in der Ruh!
  Mei -- nem Gott nur will ich ge -- ben
  Leib und Seel, mein gan -- zes Le -- ben.
  Gib, o Je -- su, Gnad da -- zu,
  Gib, o Je -- su, Gnad da -- zu.
}

lyrii = \lyricmode {
  Got -- tes Lob und Ehr zu meh -- ren,
  ich ver -- lang und al -- les tu.
}

kopf=\header {
  title = \myTitel
  subtitle = "GL 455 (alt: 615)"
  subsubtitle = ##f
  piece = "Notensatz: lilypond.miraheze.org"
  composer = \markup { #mycomp }
  poet = "Duderstadt 1723"
}

%ccc=
\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
    %mmarkup-markup-spacing.padding = #2
  }
  \kopf
  \score
  {
    <<
      \new 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 \lyrii
          \new Staff="Bass"
          <<
            \new Voice { \voiceOne \ten }
            \new Voice { \voiceTwo \bas }
            \new NullVoice \Struktur
          >>
        >>
      >>
    >>
  }
}