Orgel Vorspiel Sattler 270

Zur Navigation springen Zur Suche springen


Lilypond-Code

\version "2.20.0"
\language "deutsch"
myTitel = "Orgel Präludium № 270"

#(use-modules (scm accreg))
myBlue = #(x11-color 'sienna4)

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 (naturalize-pitch p)
   (let ((o (ly:pitch-octave p))
         (a (* 4 (ly:pitch-alteration p)))
         ;; alteration, a, in quarter tone steps,
         ;; for historical reasons
         (n (ly:pitch-notename p)))
     (if (= n 5) (set! a 0))
     (if (= n 2) (set! a 0))
     (if (= n 6) (set! a 0))
     (ly:make-pitch o n (/ a 4))))

#(define (naturalize music)
   (let ((es (ly:music-property music 'elements))
         (e (ly:music-property music 'element))
         (p (ly:music-property music 'pitch)))
     (if (pair? es)
         (ly:music-set-property!
          music 'elements
          (map naturalize es)))
     (if (ly:music? e)
         (ly:music-set-property!
          music 'element
          (naturalize e)))
     (if (ly:pitch? p)
         (begin
          (set! p (naturalize-pitch p))
          (ly:music-set-property! music 'pitch p)))
     music))

naturalizeMusic =
#(define-music-function (m)
   (ly:music?)
   (naturalize m))

MollDur =
#(define-music-function (p q m)
   (ly:pitch? ly:pitch? ly:music?)
   #{
     \key $p \major \transpose c $p \naturalizeMusic \transpose $q c { $m }
   #}
   )

\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
  }
}

sop = \relative c'' {
  \time 2/2
  h2 fis'
  d h
  cis ais
  h a4 h
  g2 e
  fis h4 cis
  d2 cis
  h1
  \bar "|."
}

alt = \relative c' {
  fis1 ~
  fis2 g
  g fis4 e
  d2 fis
  e e
  d eis
  fis2. e4
  d1
}

ten = \relative c' {

  \clef bass
  d2 cis
  h d e cis
  h1 ~ h ~ h2 ~ h ~ h ais
  h1
}

bas = \relative c' {
  h2 ais
  h g e fis
  g dis e g
  h g fis1 h,
}

Struktur =
{
  \override Score.NonMusicalPaperColumn.page-break-permission = ##f
  \override Score.SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/12)
  %\override PianoStaff.VerticalAxisGroup.staff-staff-spacing.padding = #21
  \override PianoStaff.VerticalAxisGroup.staff-staff-spacing.basic-distance = #12
}

kopf=\header {
  title = \markup \line
  {
    \myTitel
  }
  subtitle = ##f % "№ 5"
  subsubtitle = ##f
  poet = "Notensatz: lilypond.miraheze.org"
  composer = "M: Carl Sattler (1871/74-1938)"
  piece = ##f
}

\bookpart {
  \paper {
    top-margin = 25\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 = ##f
    #(include-special-characters)
    print-first-page-number = ##t
    first-page-number = #1
    oddFooterMarkup = ##f
    evenFooterMarkup = ##f
    oddHeaderMarkup = #oddFooterMarkup
    evenHeaderMarkup = #evenFooterMarkup
    markup-markup-spacing.padding = #10
  }
  \kopf
  \markup \huge "H-Moll"
  \score
  {
    <<
      \new PianoStaff="leadsheet"
      <<
        \new Staff="Discant"
        <<
          \new Voice="Alt" { \key d \major \voiceOne \sop }
          \new Voice { \voiceTwo \alt }
        >>
        \new Staff="Bass"
        <<
          \new Voice { \key d \major \voiceOne \ten }
          \new Voice { \voiceTwo \bas }
          \new NullVoice \Struktur
        >>
      >>
    >>
  }
  \markup \huge "A-Moll"
  \score
  {
    <<
      \new PianoStaff="leadsheet"
      <<
        \new Staff="Discant"
        <<
          \new Voice="Alt" { \voiceOne \transpose d c \sop }
          \new Voice { \voiceTwo \transpose d c \alt }
        >>
        \new Staff="Bass"
        <<
          \new Voice { \voiceOne \transpose d c \ten }
          \new Voice { \voiceTwo \transpose d c \bas }
          \new NullVoice \Struktur
        >>
      >>
    >>
  }
  \markup \huge "E-Moll"
  \score
  {
    <<
      \new PianoStaff="leadsheet"
      <<
        \new Staff="Discant"
        <<
          \new Voice="Alt" { \key g \major \voiceOne \transpose d g \sop }
          \new Voice { \voiceTwo \transpose d g \alt }
        >>
        \new Staff="Bass"
        <<
          \new Voice { \key g \major \voiceOne \transpose d g, \ten }
          \new Voice { \voiceTwo \transpose d g, \bas }
          \new NullVoice \Struktur
        >>
      >>
    >>
  }
  \markup \huge "D-Moll"
  \score
  {
    <<
      \new PianoStaff="leadsheet"
      <<
        \new Staff="Discant"
        <<
          \new Voice="Alt" { \key f \major \voiceOne \transpose d f \sop }
          \new Voice { \voiceTwo \transpose d f \alt }
        >>
        \new Staff="Bass"
        <<
          \new Voice { \key f \major \voiceOne \transpose d f, \ten }
          \new Voice { \voiceTwo \transpose d f, \bas }
          \new NullVoice \Struktur
        >>
      >>
    >>
  }
  \pageBreak
  \markup \huge "F-Dur"
  \score
  {
    <<
      \new PianoStaff="leadsheet"
      <<
        \new Staff="Discant"
        <<
          \new Voice="Alt" { \voiceOne \MollDur f h \sop }
          \new Voice { \voiceTwo \MollDur f h \alt }
        >>
        \new Staff="Bass"
        <<
          \new Voice { \voiceOne \MollDur f h \ten }
          \new Voice { \voiceTwo \MollDur f h \bas }
          \new NullVoice \Struktur
        >>
      >>
    >>
  }
  \markup \huge "C-Dur"
  \score
  {
    <<
      \new PianoStaff="leadsheet"
      <<
        \new Staff="Discant"
        <<
          \new Voice="Alt" { \voiceOne \MollDur c' h \sop }
          \new Voice { \voiceTwo \MollDur c' h \alt }
        >>
        \new Staff="Bass"
        <<
          \new Voice { \voiceOne \MollDur c h \ten }
          \new Voice { \voiceTwo \MollDur c h \bas }
          \new NullVoice \Struktur
        >>
      >>
    >>
  }
  \markup \huge "G-Dur"
  \score
  {
    <<
      \new PianoStaff="leadsheet"
      <<
        \new Staff="Discant"
        <<
          \new Voice="Alt" { \voiceOne \MollDur g, d \sop }
          \new Voice { \voiceTwo \MollDur g, d \alt }
        >>
        \new Staff="Bass"
        <<
          \new Voice { \voiceOne \MollDur g, d \ten }
          \new Voice { \voiceTwo \MollDur g, d \bas }
          \new NullVoice \Struktur
        >>
      >>
    >>
  }
  \markup \huge "D-Dur"
  \score
  {
    <<
      \new PianoStaff="leadsheet"
      <<
        \new Staff="Discant"
        <<
          \new Voice="Alt" { \voiceOne \MollDur d d \sop }
          \new Voice { \voiceTwo \MollDur d d \alt }
        >>
        \new Staff="Bass"
        <<
          \new Voice { \voiceOne \MollDur d d \ten }
          \new Voice { \voiceTwo \MollDur d d \bas }
          \new NullVoice \Struktur
        >>
      >>
    >>
  }
}

\include "articulate.ly"

alle =
\score {
  \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"
        \bas
      }
    }
  >>
}


alledur =
\score {
  \new StaffGroup
  <<
    \new Staff {
      \new Voice {
        \set Staff.midiInstrument = "Church Organ"
        \MollDur c h
        \sop
      }
    }
    \new Staff {
      \new Voice {
        \set Staff.midiInstrument = "Church Organ"
        \MollDur c h
        \alt
      }
    }
    \new Staff {
      \new Voice {
        \set Staff.midiInstrument = "Church Organ"
        \clef bass
        \MollDur c h
        \ten
      }
    }
    \new Staff {
      \new Voice {
        \set Staff.midiInstrument = "Church Organ"
        \MollDur c h
        \bas
      }
    }
  >>
}

\make-midi-list "moll" \alle #'(108 116 120)
\make-midi-list "dur" \alledur #'(108 116 120)