Ein Haus voll Glorie schauet instrumental

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
  }
} 
myTitel = "Ein Haus voll Glorie schauet"

ssop = \relative c'' {
  \time 2/2
  \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 c \major
  \autoBeamOff
  \numericTimeSignature
  \partial 4
  g4
  h g a h
  g2 e4 \breathe g
  c d h a
  g2 r4 e4
  g4 g a h
  c2 d4 \breathe c
  h a h4 a g2 r
  c4 g c e
  d4 h d4 r
  c d e c
  d4 h g4 \breathe g
  c g a h c2 e4
  c f4 d4 d h
  c2.
  \bar "|."
}

alt = \relative c'' {
  g4 e e f d
  e2 c4 e
  f f d d
  e2 s4 c
  e4 e f d
  e g h e,
  g fis d4 fis
  d2 s
  e g
  g4 g g4 s
  e2 e
  fis4 g e4 f
  e4 e g g
  g2 g4
  b a h4 g g
  e2.
}

ten = \relative c' {
  \key c \major
  \numericTimeSignature
  \clef bass
  h4
  c c a h
  g2 ~ g4 g
  f a f2
  g2 r4 g
  e2 f2
  g2 g4 g ~
  g fis g4 fis
  h2 r
  g2 e
  f f4 r
  g2 a
  fis4 g g4 \breathe f4
  g2 h
  c g
  c4 g h2 g2.
}

bas = \relative c' {
  g4 ~ g e f g
  e2 c4 c
  c f d2
  c2 s4 e
  c2 c4 h
  c2 d4 c
  d d h d
  d2 s
  e c
  d d4 s
  e2 c
  d2 c4 d4
  c2 d
  e e
  f
  4 d d2
  c2.
}

Akk=
\chordmode {
  g4:7
  c2 f4 g
  c1
  f4 d:m g2:7
  c s4 c
  c2 f4 g
  c2 g4 c
  g d g4 d
  g1
  c
  g
  c2 a:m
  d4 g c4 g:7
  c2 g
  c
  c:7 f4 g2:7 s4
  c2
}

Struktur =
{
  \override Score.NonMusicalPaperColumn.page-break-permission = ##f
  \override Score.SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/26)
  \override PianoStaff.VerticalAxisGroup.staff-staff-spacing =
  #'((basic-distance . 20)
     (padding . 6))
  %\tempo 4=88
}

kopf=\header {
  title = \markup { \myTitel " instrumental" }
  subtitle = "GL 478 (alt: 639)"
  subsubtitle = ##f
  poet= "Notensatz: lilypond.miraheze.org"
  composer = "M: Joseph Hermann Mohr (1834-1892) 1875"
  piece = ##f
}

%ccc=
\bookpart {
  \paper {
    top-margin = 20\mm
    ragged-right = ##f
    ragged-last = ##f
    ragged-bottom = ##t
    ragged-last-bottom = ##t
    bottom-margin = 25\mm
    indent = #0
    line-width = 160\mm
    print-all-headers = ##t
    #(include-special-characters)
    print-first-page-number = ##t
    first-page-number = #1
    oddFooterMarkup = ##f
    evenFooterMarkup = ##f
    oddHeaderMarkup = #oddFooterMarkup
    evenHeaderMarkup = #evenFooterMarkup
    markup-system-spacing.padding = #4
    system-system-spacing.padding = #8
    markup-markup-spacing.padding = #1
  }
  \score
  {
    <<
      \new ChordNames \Akk
      <<
        \new PianoStaff="leadsheet"
        <<
          \new Staff="Discant"
          <<
            \new Voice="Alt" { \voiceOne \sop }
            \new Voice { \voiceTwo \alt }
          >>
          \new Staff="Bass"
          <<
            \new Voice { \voiceOne \ten }
            \new Voice { \voiceTwo \bas }
            \new NullVoice \Struktur
          >>
        >>
      >>
    >>
    \kopf
  }
}