User:Lilipond/Klaviernoten/layout

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
\version "2.19.80"

\language "deutsch"
#(set-global-staff-size 18)

\paper {
  myStaffSize = #18
  % define music font in addition to global font
  #(define fonts
     (set-global-fonts
      #:music "ross"
      #:brace "gonville"
      #:roman "Minion Pro"
      #:factor (/ staff-height pt 20)
      ))
  #(add-music-fonts fonts 'emm "emmentaler" "emmentaler"
     feta-design-size-mapping (/ staff-height pt 20))
}

\layout {

  \context {
    \Staff
    \override StaffSymbol.thickness = #0.6 %Standardwert = 1
    \override DynamicLineSpanner.staff-padding = #3
    beamExceptions = #'()
    \override BreathingSign.text =
    \markup { \musicglyph #"scripts.lvarcomma" }
    \consists "Mark_engraver"
    \consists "Staff_collecting_engraver"
    \override RehearsalMark.self-alignment-X = #LEFT
    %\override RehearsalMark.outside-staff-priority = #'()
    \override SustainPedal.font-family = #'emm
  }

  \context {
    \Staff
    \name BarNumberStaff
    %% Staff with Bar Numbers
    \alias Staff
    \consists "Bar_number_engraver"
    \override BarNumber.break-visibility =#end-of-line-invisible
    \override BarNumber.color = #grey
    \override BarNumber.layer = #-200
    %\override BarNumber.break-visibility =#begin-of-line-visible  %#end-of-line-invisible
    \override BarNumber.outside-staff-priority =#'()
    \override BarNumber.padding = #1
    \override BarNumber.font-size = #1
    \override BarNumber.self-alignment-X = #0
    %\override StaffSymbol.thickness = #0.5 %0.3=optimaler wert
    \override DynamicLineSpanner.staff-padding = #3
  }

  \context {
    \PianoStaff
    \accepts BarNumberStaff
  }

  \context {
    \Dynamics
    \override DynamicText.whiteout = ##t
  }

  \context {
    \Score
    \accepts BarNumberStaff
    \remove "Bar_number_engraver"
    \remove "Mark_engraver"
    \remove "Staff_collecting_engraver"
    \override FootnoteItem.annotation-line = ##f
    \override Timing.beamExceptions = #'()
    \override BarLine.thick-thickness = 5
    %4.5 %% dass die Barlines nicht zu fett werden
    \override MetronomeMark.font-size = #1
    %\override MetronomeMark.font-series = #'bold
    \override MetronomeMark.font-shape = #'caps
    \override BreakAlignment.break-align-orders =
    ##((left-edge ambitus breathing-sign clef staff-bar
         key-cancellation key-signature time-signature custos)
       (left-edge ambitus breathing-sign clef key-cancellation
         staff-bar key-signature time-signature custos)
       (left-edge ambitus breathing-sign clef key-cancellation
         key-signature staff-bar time-signature custos))
  }
}