Bundeshymne (BGBl)

Zur Navigation springen Zur Suche springen

dem Gesetzestext möglichst originalgetreu nachempfunden

Lilypond Score

RH =
\relative c'' {
  \key f \major
  \time 3/4
  \tempo "Feierlich, doch nicht zu langsam"
  %\autoBeamOff
  \voiceOne
  % \override FirstVoice.DynamicText.direction = #UP
  c2 b4 a2 b8 ( c )
  d2 c4 c8 ( b ) b4
  \oneVoice r4 \voiceOne
  b2 a4 g2 a8 ( b )
  c2 b4 b8 ( a ) a4
  \oneVoice r \voiceOne
  h2 c4 d2 e4 f ( d ) h c2
  \oneVoice r4 \voiceOne
  g2 a4 c ( b ) g
  a2 d8 ( b ) a4 g
  \oneVoice r4 \voiceOne
  g2 a4 c ( b ) g
  a2 d8 ( b ) a4 g
  \oneVoice r4 \voiceOne
  b2 a4 d2 c4 c8 ( b  a4 ) g a2
  \oneVoice r4 \voiceOne
  d2 c4 e2 f8  c  c ( b a4 ) g f2
  \oneVoice r4 \voiceOne
  \bar "|."
}

RHsnr =
\relative c'' {
  \phrasingSlurDown
  a2 g4 f2 g8 a
  b2 a4 a8  g  g4 r
  g2 f4 e2 f8  g
  a2 g4 g8  f  f4 r
  f2 e4 g2 c4 a ( f ) d e2 r4
  e2 f4 a ( g ) e f2 b8  g  f4 e r
  e2 f4 a ( g ) e f2 b8  g  f4 e r
  g2 f4 b2 a4 a8  \( g  f4 \) e f2 r4
  b2 a4 g \( b \) a4 a8  \( g  f4 \) e f2
}

KlaI = \relative c'' {
  \clef treble
  \key f \major
  \voiceOne
  < c a >2 < b g >4
  < a f >2 < b g >8 < c a >
  < d b >2 < c a >4
  < c a >8 b b4
  b4\rest
  < b g >2 < a f >4 < g e >2 < a f >8 < b g >
  < c a >2 < b g >4 < b g >8 < a f > q4
  \oneVoice
  r4
  \voiceOne
  < h f >2 < c e, >4 d2 e4
  < f a, > ( < d f, > ) < h f d > < c e, c >2
  \oneVoice
  r4
  \voiceOne
  < g e >2 ( < a f >4 ) < c a > ( < b g > ) < g e >
  < a f >2 < d b >8 < b g > < a f >4 ( < g e > )
  \oneVoice
  r4
  \voiceOne
  < g e >2 ( < a f >4 ) < c a > ( < b g > ) < g e >
  < a f >2 < d b >8 < b g > < a f >4 ( < g e > )
  \oneVoice
  r4
  \voiceOne
  < b g >2 ( < a f >4 )
  < d b >2 ( < c a >4 )
  q8 ( < b g > < a f >4 ) < g e >
  < a f >2
  \oneVoice
  r4
  \voiceOne
  < d b >2 ( < c a >4 )
  < e b >2 < f a, >8 ( < c f, > )
  < c a > ( < b g > < a f >4 ) < g e >
  f2
  \oneVoice r4
}

KlaII = \relative c' {
  \voiceTwo
  c2. ~ 2 r4
  d ( e fis ) fis8 g g4 s
  c,2. ~ 2 r4
  s2.
  e8 f f4 s
  s2. * 4
  c2. c c c c
  d2 c4 c2 d4
  c2 s4 s2. s
  d4 ( c ) c c2 s4
  d8. ( e16 f8. g16 a4 )
  s2.
  d,4 ( c ) b a2
}

LH = \relative c, {
  \clef bass
  \key f \major
  f4 ( a c ) f2 r4
  b,4 ( c d ) g,2 r4
  c4 ( e g ) c,2 r4
  < e c > ( < f d > < g e > ) f2 r4
  r g ( c ) r < h g > ( < c c, > )
  f,2 g4 c,2 r4
  c2 f4 e2 c'4 f,2 b,4 c2 r4
  <<
    {
      c'2. d2 c4
    } \\  {
      c4 ( b a )
      g2 c4
    }
  >>
  f,2 b,4
  \set doubleSlurs = ##t
  c2 r4 r < e c > ( < f f, > )
  \set doubleSlurs = ##f
  r4 < g e > < a f >
  b, ( c ) c f,2 r4
  b8. ( c16 d8. e16 f4 )
  <<
    {
      g2 f4
    } \\  {
      c4 ( cis ) d8 a
    }
  >>
  b4 ( c ) c, f2 r4
}

firstverse = \lyricmode {
  \set stanza = #"1."
  Land der Ber -- ge, Land am Stro -- me,
  Land der Äk -- ker, Land der Do -- me,
  Land der Häm -- mer, zu -- kunfts -- reich!
  Hei -- mat gros -- ser
  \set ignoreMelismata = ##t
  Töch -- ter und Söh -- ne,
  \unset ignoreMelismata
  Volk, be -- gna -- det für das Schö -- ne,
  viel -- ge -- rühm -- tes Ö -- ster -- reich.
  Viel -- ge -- rühm -- tes Ö -- ster -- reich.
}

secondverse = \lyricmode {
  \set stanza = #"2."
  Heiß um -- feh -- det, wild um -- strit -- ten,
  liegst dem Erd -- teil du in -- mit -- ten
  ei -- nem star -- ken Her -- zen gleich.
  Hast seit frü -- hen Ah -- nen -- ta -- gen
  ho -- her Sen -- dung Last ge -- tra -- gen,
  viel -- ge -- prüf -- tes Ö -- ster -- reich.
  Viel -- ge -- prüf -- tes Ö -- ster -- reich.
}

thirdverse = \lyricmode {
  \set stanza = #"3."
  Mu -- tig in die neu -- en Zei -- ten,
  frei und gläu -- big sieh uns schrei -- ten,
  ar -- beits -- froh und hoff -- nungs -- reich.
  Ei -- nig lass in Brü -- der -- chö -- ren,
  Va -- ter -- land, dir Treu -- e schwö -- ren,
  viel -- ge -- lieb -- tes Ö -- ster -- reich.
  Viel -- ge -- lieb -- tes Ö -- ster -- reich.
}

Struktur = {
  \override Score.NonMusicalPaperColumn.page-break-permission = ##f
  \override Score.SpacingSpanner.base-shortest-duration = #(ly:make-moment 1/18)
  %\override NonMusicalPaperColumn.line-break-permission = ##f
  %s2. * 14 \break
  %s2. * 7 \break
}
myTitel = "Österreichische Bundeshymne"
mycomp=\markup \line \fontsize #-1.5 {
  #mozart
  "♫" \hspace #-1 "♫" \hspace #-1 "♫" \hspace #-1 "♫" \hspace #-1 "♫" \hspace #-1 "♪"
}

Akk=
\chordmode {
  f2 c4:7
  f2 b4 b2 d4:7
  d8:7 g8:m \parenthesize c4:7 s4
  b2 f4
  c2 f8 c:7
  f2 c4:7
  c8:7 f4. s4
  g2:7 c4
  g2 c4
  f4 b g:7
  c2.
  c2 f4
  f4 c2:7
  f2 g8:m \parenthesize c:7
  f4 c s
  c2 f4 f g8:m \parenthesize c:7 c4
  f2 b4
  f4 c s
  g2:m f4
  g2:m f4
  f8 c:7 f4 c
  f2 s4
  b2 f4
  c2:7 f4
  f2 c4:7
  f2
}

Akk = \chordmode {
  f2 c4:7
  f2 c4:7 b2 f4
  f c2:7
  c2:7 f4
  c2 f4
  f2 c4:7
  c4:7 f2
  g2:7 c4
  g2 c4
  f2 g4:7
  c2.
  c2 f4
  f4 c2:7
  f2 g4:m
  f4 c s
  c2 f4 f2 c4
  f2 g4:m
  f4 c s
  c2:7 f4
  g2:m f4
  f2 c4
  f2 s4
  b2 f4
  c2:7 f4
  f2 c4:7
  f2
}

Dyn= {
  s2.\f
  s2.*7
  s2.\< s s\> s s\p
  s2. * 7
  s2.\f
  s s s s\ff
}


#(set! paper-alist (cons '("mein Format" . (cons (* 260 mm) (* 400 mm))) paper-alist))
\paper {
   #(set-paper-size "mein Format")
}

\bookpart {
  \paper {
    #(include-special-characters)
    #(set-paper-size "mein Format")
    top-margin = 25\mm
    ragged-right = ##f
    ragged-last = ##f
    ragged-bottom = ##t
    ragged-last-bottom = ##t
    bottom-margin = 20\mm
    indent = 20\mm
    line-width = 220\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 = #2
    score-markup-spacing.padding = #0
    annotate-spacing = ##f
  }
  \header {
    title = #myTitel
    subtitle = ##f
    subsubtitle = ##f
    poet = "T: Paula von Preradović"
    composer = "M: Wolfgang Amadeus Mozart zugeschrieben"
    opus = "vermutlich Johann Baptist Holzer"
    typesetter ="lilypond.miraheze.org"
  }
  \score {
    <<
      \new Staff=oben
      <<
        \set Staff.instrumentName = \markup \center-column { Sing- stimmen }
        \context Voice="melody" \RH
        \new Dynamics \Dyn
        \context SecondVoice="sndvoice" \RHsnr
        \new Lyrics \lyricsto "melody" \firstverse
        \new Lyrics \lyricsto "melody" \secondverse
        \new Lyrics \lyricsto "melody" \thirdverse
      >>
      \new PianoStaff
      <<
        \set PianoStaff.instrumentName = "Klavier"
        \new Staff = "right"
        <<
          \new Voice \KlaI
          \new Voice \KlaII
          \new NullVoice \Struktur
        >>
        \new Dynamics \Dyn
        \new Staff = "left" { \clef bass \LH }
      >>
    >>
  }
}

#(set-global-staff-size 22)
#(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))

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))

editorsColor = #grey
ed =
#(define-music-function (grob col mus)
   (symbol-list-or-symbol? (color? editorsColor) ly:music?)
   ;; for abbreviations, we need a symbol instead of a one-element list
   (let ((grob (if (= 1 (length grob)) (car grob) grob)))
     (case
      grob
      ;; define abbreviations
      ;; which call the function recursively with a value
      ;; leading into the (else) clause
      ;; (or to _another_ abbreviation)
      ;; be careful to avoid infinite recursion :-)
      ;; – abbreviation names must not be actual grob names
      ;; (at least if they’re used in the corresponding
      ;; clause) or recursion will be infinite also
      ;; It is recommended to use singular forms only
      ;; for abbreviations.
      ((Caut) #{ \ed Staff.AccidentalCautionary #})
      ((LedgerLine) #{ % barline is workaround to issue 3949
        \stopStaff
        \ed Staff.LedgerLineSpanner {
          \startStaff
          $mus
          \stopStaff
        }
        \startStaff #})
      ((Mmr) #{ \ed MultiMeasureRest $mus #})
      ((Note) #{ \ed Staff.Accidental
                 \ed Beam
                 \ed Dots
                 \ed Flag
                 \ed LedgerLine
                 \ed NoteHead
                 \ed Rest
                 \ed Stem $mus #})
      ((Pitch) #{ \ed NoteHead $mus #})
      ((Suggest) #{ \ed Staff.AccidentalSuggestion #})
      ((StemWithFlag) #{ \ed Stem \ed Flag $mus #})
      ((Tuplet) #{ \ed TupletNumber \ed TupletBracket $mus #})
      ;; ‘normal’ case
      (else
       #{
         \override $grob . color = #col
         $mus
         \revert $grob . color
       #}))))

#(define new-stil
   (lambda (grob)
     (let* ((sz (ly:grob-property grob 'font-size 0.0))
            (mult (magstep sz))
            (dir (ly:grob-property grob 'direction))
            (thick 0.15)
            (radius 0.7)
            (scaled-radius (* mult radius))
            (ps-command-string
             (format #f
               "
             0 ~a translate
             ~a setlinewidth
             ~a 0 moveto
             0 0 ~a 180 0 ~a
             stroke
             "
               ;mult
               (* thick dir)
               thick
               (- scaled-radius)
               scaled-radius
               (if (negative? dir) "arcn" "arc"))))

       (ly:make-stencil
        (list 'embedded-ps
          (format #f
            "
              gsave currentpoint translate
              ~a
              grestore
              "
            ps-command-string))
        (cons (- scaled-radius) scaled-radius)
        (cons
         (if (negative? dir) 0 (- scaled-radius))
         (if (negative? dir) scaled-radius 0))))))

soft =
-\tweak stencil #new-stil \fermata

#(define-markup-command (text-fromproperty layout props text-1 symbol text-2)
   (markup? symbol? markup?)
   #:category other
   (let ((m (chain-assoc-get symbol props)))
     (if (markup? m)
         ;; prevent infinite loops by clearing the interpreted property:
         (interpret-markup
          layout
          (cons (list (cons symbol `(,property-recursive-markup ,symbol))) props)
          (make-concat-markup (list text-1 m text-2)))
         empty-stencil)))



klavier =
%% simple orgelsatz nur SATBs
#(define-music-function (sop alt ten bas stru)
   (ly:music? ly:music? ly:music? ly:music? ly:music?)
   #{
     <<
       \new PianoStaff="leadsheet"
       <<
         \new Staff="Discant"
         <<
           \new Voice="Alt" { $sop }
           \new Voice { $alt }
         >>
         \new Staff="Bass"
         <<
           \new Voice { $ten }
           \new Voice { $bas }
           \new NullVoice $stru
         >>
       >>
     >>
   #}
   )

mynote =
#(define-music-function (m)
   (ly:duration?)
   #{
     \override Score.RehearsalMark.break-align-symbols = #'(time-signature)
     \once \override Score.RehearsalMark.self-alignment-X = #-1
     \mark \markup \fontsize #-3.5 \note { $m } #UP
   #}
   )


oob = { \once \override Score.BarNumber.stencil = ##f \bar "" }
bnf = \once \override Score.BarNumber.stencil = ##f
#(use-modules (ice-9 regex))

dynamictext =
#(define-event-function (text) (markup?)
   (if (string? text)
       (let* ((underscores-replaced
               (string-map
                (lambda (x) (if (eq? x #\_) #\space x))
                text))
              (split-text (string-split underscores-replaced #\space))
              (formatted (map
                          (lambda (word)
                            (if (string-match "^[mrzfps]*$" word)
                                (markup #:dynamic word)
                                (markup #:normal-text #:italic word)))
                          split-text)))
         #{
           #(make-dynamic-script (make-line-markup formatted))
         #})
       ;; user provided a full-blown markup, so we don't mess with it:
       #{
         #(make-dynamic-script (markup #:normal-text text))
       #}))

startMyGrace = {
  \temporary \override Slur.minimum-length = #0.1
  \startSlashedGraceMusic
  <>-#(make-music 'LaissezVibrerEvent)
  \revert Slur.minimum-length
}

myAcc =
#(def-grace-function startMyGrace stopSlashedGraceMusic)

dropLyrics =
#(define-scheme-function (amount) (number?)
   #{
     \override LyricText.extra-offset = #`(0 . ,amount)
     \override LyricHyphen.extra-offset = #`(0 . ,amount)
     \override LyricExtender.extra-offset = #`(0 . ,amount)
     \override StanzaNumber.extra-offset = #`(0 . ,amount)
   #}
   )

raiseLyrics = {
  \revert LyricText.extra-offset
  \revert LyricHyphen.extra-offset
  \revert LyricExtender.extra-offset
  \revert StanzaNumber.extra-offset
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Liedverse Formatierung
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

#(define-markup-list-command (paragraph layout props args) (markup-list?)
   #:properties ((x-shift 2))
   (interpret-markup-list layout props
     (make-justified-lines-markup-list (cons (make-hspace-markup x-shift) args))))

#(define (numbering-start lst strt)
   "Returns a list of custom formated markups for numbers, relying on the length
of @var{lst}, starting with number 2"
   (if (eq? strt 0)
       (map
        (lambda (i)
          #{ \markup \concat \paragraph { " " } #})
        (iota (length lst)))
       (map
        (lambda (i)
          #{ \markup \concat \paragraph { \bold #(format #f "~2d. " i) } #})
        (iota (length lst) strt 1))))

#(define (equal-sized-splited-list lst n rl)
   "Split @var{lst} in equal sized parts of length @var{n}.
If @var{lst} is finally not empty add the remaining rest."
   (cond ((null? lst) (reverse rl))
     ((< (length lst) n) (reverse (cons lst rl)))
     (else
      (equal-sized-splited-list (drop lst n) n (cons (take lst n) rl)))))

columns-markup-list =
#(define-scheme-function (lines-per-verse ls)(index? markup-list?)
   "Returns a markup-list.  Each markup is done from a subset of @var{ls} under
control of @var{lines-per-verse}.  The markups are custom-formated using
@code{\\column-lines}, @code{\\column} and a hard-coded @code{baseline-skip} of
value 3"
   (let ((splitted-ls (equal-sized-splited-list ls lines-per-verse '())))
     (map
      (lambda (l)
        #{ \markup \override #'(baseline-skip . 3)
           %\override #`(font-name . ,myMin)
           \override \largerFont
           \column \column-lines $l #})
      splitted-ls) ))

formatAdditionalVerses =
#(define-scheme-function (center-overshoot number-start columns lst)
   ((boolean? #t) index? index? markup-list?)
   (let* ((numberings (numbering-start lst number-start))
          (new-list
           (map
            (lambda (x y)
              #{
                \markup
                \override #'(baseline-skip . 3)
                \line {
                  \paragraph {
                    \overlay {
                      \right-align \transparent "222"
                      \right-align \number $x
                    }
                  }
                  $y
                }
              #})
            numberings
            lst))
          (lst-lngth (length lst))
          (table-lst
           (if (and (odd? lst-lngth)
                    (= (remainder lst-lngth columns) 1)
                    center-overshoot)
               (drop-right new-list 1)
               new-list))
          (odd-tail
           (if (and (odd? lst-lngth)
                    (= (remainder lst-lngth columns) 1)
                    center-overshoot)
               (take-right new-list 1)
               #f))
          (columns-format-list (make-list columns LEFT))
          (args-list
           #{ \markuplist {
             \override #'(font-size . -1)
             \table #columns-format-list #table-lst
           } #})
          (args-list-rev
           (append
            args-list
            (if odd-tail
                #{
                  \markuplist \override #'(font-size . -1)
                  %% hier nix ändern, das sind die Nummerierungen!!
                  \column-lines { \fill-line { \line { #odd-tail } } }
                #}
                '()))))
     args-list-rev))

#(define-markup-list-command (paragraph layout props args) (markup-list?)
   #:properties ((x-shift 2))
   (interpret-markup-list layout props
     (make-justified-lines-markup-list (cons (make-hspace-markup x-shift) args))))

#(define (reorder-lists lists)
   ;; TODO better name and DOC
   "Example:
   (reorder-lists '((a) (b c) (d e f)))
   ->'(a b d "" c e "" "" f)"
   (let* ((max-length (apply max 0 (map length lists)))
          (equal-length-lists
           (map
            (lambda (l)
              (let ((length-diff (- max-length (length l))))
                (if (zero? length-diff)
                    l
                    (append l (make-list length-diff "")))))
            lists)))

     (define (new-lists lists rl)
       ;; TODO better name and DOC
       "Example
       (new-lists '((a b c) (d e f) (g h i)) '())
       ->
       '((a d g) (b e h) (c f i))"
       (if (every null? lists)
           (reverse rl)
           (new-lists
            (map cdr lists)
            (cons (map car lists) rl))))

     (apply append '() (new-lists equal-length-lists '()))))

#(define (numbering-start lst strt)
   "Returns a list of custom formated markups for numbers, relying on the length
of @var{lst}, starting with number 2"
   (if (eq? strt 0)
       (map
        (lambda (i)
          #{ \markup \concat \paragraph { " " } #})
        (iota (length lst)))
       (map
        (lambda (i)
          #{ \markup \concat \paragraph { \bold #(format #f "~2d. " i) } #})
        (iota (length lst) strt 1))))

formatTwoColumns =
#(define-scheme-function (trenner r-col r-start l-col l-start)
   ((string? " ") markup-list? index? markup-list? index?)
   #{
     \markuplist {
       %\override #`(font-name . ,myMin)
       %s\override \largerFont
       %\override #'(baseline-skip . 3)
       %\override #'(padding . 0)
       \table
       #'(1 -1 1 1 -1)
       #(reorder-lists
         (list
          ;; numbering is done for each list, because we can't warrant equal
          ;; length of each list
          (numbering-start r-col r-start)
          r-col
          (make-list (length r-col) trenner)
          (numbering-start l-col l-start)
          l-col))
     }
   #}
   )

%% LSR 233 https://lsr.di.unimi.it/LSR/Item?id=233
hairpinWithCenteredText =
#(define-music-function (parser location text) (markup?)
  #{
    \once \override Voice.Hairpin.after-line-breaking = 
      #(lambda (grob)
        (let* ((stencil (ly:hairpin::print grob))
               (par-y (ly:grob-parent grob Y))
               (dir (ly:grob-property par-y 'direction))
               (staff-line-thickness
                 (ly:output-def-lookup (ly:grob-layout grob) 'line-thickness))
               (new-stencil (ly:stencil-aligned-to
                 (ly:stencil-combine-at-edge
                   (ly:stencil-aligned-to stencil X CENTER)
                   Y dir
                   (ly:stencil-aligned-to
                     (grob-interpret-markup
                       grob
                       (make-fontsize-markup
                         (magnification->font-size
                           (+ (ly:staff-symbol-staff-space grob)
                              (/ staff-line-thickness 2)))
                           text)) X CENTER))
                 X LEFT))
               (staff-space (ly:output-def-lookup
                 (ly:grob-layout grob) 'staff-space))
               (par-x (ly:grob-parent grob X))
               (dyn-text (grob::has-interface par-x 'dynamic-text-interface))
               (dyn-text-stencil-x-length
                 (if dyn-text
                   (interval-length 
                     (ly:stencil-extent (ly:grob-property par-x 'stencil) X))
                   0))
               (x-shift 
                 (if dyn-text 
                   (- 
                     (+ staff-space dyn-text-stencil-x-length)
                     (* 0.5 staff-line-thickness)) 0)))
  
        (ly:grob-set-property! grob 'Y-offset 0)
        (ly:grob-set-property! grob 'stencil 
           (ly:stencil-translate-axis
            new-stencil
            x-shift X))))
  #})
\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 {
    \Voice
    \name FirstVoice
    \alias Voice
    \voiceOne
  }
  \context {
    \Voice
    \name SecondVoice
    \alias Voice
    \remove "Tuplet_engraver"
    \remove "Rest_engraver"
    \remove "Multi_measure_rest_engraver"
    %\override NoteHead.font-size = #smallerNoteHead
    \voiceTwo
  }
  \context {
    \Lyrics
    \override VerticalAxisGroup.staff-affinity = #CENTER
    \override LyricText.font-size = #-1.5
    \override StanzaNumber.font-size = #-1.5
  }
  \context {
    \Staff
    printPartCombineTexts = ##f
    beamExceptions = #'()
    \override BreathingSign.text =
    \markup { \musicglyph "scripts.lvarcomma" }
    \override InstrumentName.font-features = #'("smcp")
    \consists #Span_stem_engraver
    \accepts FirstVoice
    \accepts SecondVoice
  }
  \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 = #'()
    \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
    \override SystemStartBar.collapse-height = #4

  }
  \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 {
    \PianoStaff
    \override StaffGrouper.staffgroup-staff-spacing.basic-distance = #2
    \override StaffGrouper.staffgroup-staff-spacing.minimum-distance = #0
  }
  \context {
    \StaffGroup
    \override SystemStartBracket.collapse-height = #4
    \override SystemStartBracket.thickness = #.2
  }
}