Eigene Tonarten definieren

Zur Navigation springen Zur Suche springen

Non-traditional key signatures[1]

Die Standard-Tonarten in Lilypond sind in der Datei scale-definitions-init.ly definiert. Für jede Stufe der Tonleiter wird die Versetzung definiert.

Phantasie-Tonleiter

myscale = #`( (0 . 0)
              (1 . ,FLAT)
              (2 . 0)
              (3 . 0)
              (4 . 0)
              (5 . ,SHARP)
              (6 . 0))

Anwendung

\version "2.20.0"
\language "deutsch"

\paper {
  markup-system-spacing.minimum-distance = #5
  markup-markup-spacing.minimum-distance = #5
  score-system-spacing.minimum-distance = #10
  top-markup-spacing.minimum-distance = #10
  markup-system-spacing.basic-distance = 12
  oddHeaderMarkup = ##f
  evenHeaderMarkup = #oddHeaderMarkup
  oddFooterMarkup = #oddHeaderMarkup
  evenFooterMarkup = #oddHeaderMarkup
  ragged-right = ##f
  ragged-last = ##f
  ragged-bottom = ##t
  ragged-last-bottom = ##t
  left-margin = 30\mm
  line-width = 130\mm
}

\layout {

  \context {
    \Staff
    \remove "Time_signature_engraver"
  }

  \context {
    \Score
    \override BarNumber.stencil = ##f
    \override KeyCancellation.break-visibility = #all-invisible
    \override StaffGrouper.staffgroup-staff-spacing.basic-distance = #15
    \override StaffGrouper.staffgroup-staff-spacing.padding = #4
    \override VerticalAxisGroup.nonstaff-unrelatedstaff-spacing.padding = #1
    \override VerticalAxisGroup.nonstaff-unrelatedstaff-spacing.minimum-distance = #3
    %\remove "Default_bar_line_engraver"
    automaticBars =##f
    \override SpacingSpanner.strict-note-spacing = ##t
    \override RehearsalMark.self-alignment-X = #-1
  }
}

test = \relative c' {
  \key c \myscale
  c1 des e f g ais h c
}
#'()
{
  \mark "Phantasietonart auf C"
  \test
}
{
  \mark "Phantasietonart auf F"
  \transpose c f \test
}

Ausgabe

Phantasietonleiter.png