Du gabst o Herr mir Sein und Leben/score

Zur Navigation springen Zur Suche springen

Lilypond Score

\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 = "Deutsche Messe D.872 #4"
mycomp=\markup \line \fontsize #0 {
  "Franz Schubert (1797-1828)"
}
sop = \relative c' {
  \time 3/4
  \key b \major
  \set Timing.baseMoment = #(ly:make-moment 1/8)
  \set Timing.beatStructure = #'(2 1 3)
  \autoBeamOff
  \partial 8
  %\override Score.NoteColumn.ignore-collision = ##t
  f8
  f8. es16 d8 f b b
  b4 a8 \breathe c c c
  c4. b8 a g
  f2 r8 f8
  f8. es16 d8 f b b
  b4 a r8 b
  b8. g16 g8 b as f
  g2 r8 f
  f8. d16 d8 f es c 
  b4 r4 r8
  \bar "|."
}

alt = \relative c' {
  d8
  d8. c16 b8 d d e
  f4 ~ f8 f ~ f e
  f4. g8 f e
  f2 s8 d
  d8. c16 b8 d e4
  f2 s8 f
  g8. es16 es4 d
  es2 s8 d
  d8. b16 b8 h c a
  b4
}

ten = \relative c {
  \key b \major
  f8 ~
  f4. b8 ~ b c8
  d4 c8 \breathe a4 b8
  c4. r4 r8
  a2 r8 f8 ~
  f4. b8 cis4
  d c r8 b ~
  b2 ~ b4 ~ 
  b2 r8 b ~
  b8. f16 ~ f8 r4 es8
  d4 r r8
}

bas = \relative c {
  \clef bass
  b8
  b4. ~ b8 g'4
  f4 ~ f8 f4 g8
  a4. b,8 c4
  f2 s8 b,
  b4. ~ b8 g'4
  f2 s8 d
  es4 es8 g f b,
  es2 s8 b8
  b4. d,8 es f b4
}

Struktur =
{
  %\override Score.NonMusicalPaperColumn.page-break-permission = ##f
  %\override Score.StaffGrouper.staff-staff-spacing.padding = #0
  %\override Score.StaffGrouper.staff-staff-spacing.minimum-distance = #2
  %\override Score.SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/16)
  %\override Score.NonMusicalPaperColumn.page-break-permission = ##f
  %\override Score.NonMusicalPaperColumn.line-break-permission = ##f
  \override PianoStaff.VerticalAxisGroup.staff-staff-spacing = #'((padding . 8))
  \override Score.RehearsalMark.X-offset = #-4
  \mark ""
  \tempo 4=60
}

lyr = \lyricmode {
  \set stanza = #"1."
  Du gabst, o Herr, mir Sein und Le -- ben
  und dei -- ner Leh -- re himm -- lisch Licht.
  Was kann da -- für ich Staub dir ge -- ben?
  Nur dank -- ken kann ich, mehr doch nicht,
  nur dank -- ken kann ich, mehr doch nicht.
}

kopf=\header {
  title = \markup \line
  {
    "Gabenbereitung"
  }
  subtitle = #myTitel
  subsubtitle = "Du gabst, o Herr, mir Sein und Leben"
  poet = "Text: Josel Ph. Neumann (1774-1849)"
  composer = \markup { #mycomp }
  piece = ##f
}

\paper {
  top-margin = 20\mm
  ragged-right = ##f
  ragged-last = ##f
  ragged-bottom = ##f
  ragged-last-bottom = ##f
  bottom-margin = 20\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
  % top-markup-spacing.padding = #5
  %top-system-spacing.padding = #10
}

%zz=
\bookpart {
  \kopf
  %\include "_index.ly"
  \score
  {
    <<
      \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
        >>
      >>
    >>
  }
}