%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "/lilypond-2.26.0/input/regression/horizontal-script-ledger-lines.ly"
\sourcefileline 0
\version "2.25.33"

\header {
  texidoc = "Horizontal @code{Script} may get ledger lines by disabling
@code{no-ledgers}.  The thickness is taken from the relevant properties of
@code{StaffSymbol}.
The @code{length-fraction} may be set for the @code{Script} grob itself.
Non-standard settings of @code{StaffSymbol@/.line-positions} and
@code{StaffSymbol@/.ledger-positions} are also supported."
}

{
  \override Script.padding = 0.7
  \override Script.side-axis = #X
  \override Script.direction = #LEFT
  b2 -\mordent
  b'' -\mordent
  b'1 -\mordent
  b2 \tweak no-ledgers ##f -\mordent
  b'' \tweak no-ledgers ##f -\mordent

  \override Script.no-ledgers = ##f
  b2 -\mordent
  b'' -\mordent
  b'1 -\mordent
  \stopStaff
  \startStaff
  \override Staff.StaffSymbol.thickness = 4
  b1 -\mordent
  \stopStaff
  \startStaff
  \revert Staff.StaffSymbol.thickness
  \once \override Script.length-fraction = 2.5
  b1 -\mordent
  \section
  \stopStaff
  \startStaff
  \break
  \once \override Staff.BarLine.bar-extent = #'(-2 . 2)
  \override Script.extra-spacing-width = #'(-2 . 2)
  \override Staff.StaffSymbol.line-positions = #'(-11 11)
  \override Staff.StaffSymbol.ledger-positions = #'(0 (2 3 4) 6)

  g4\mordent
  c'->
  e'\prall
  g'\segno

  \once \override Script.ledger-positions = #'(4 6 8 9 10)
  \once \override Script.staff-position =
    #(horizontal-script::calc-staff-position 1.5)
  c''->

  \once \override Script.staff-position =
    #(horizontal-script::calc-staff-position -4)
  e''\turn

  \once \override NoteHead.ledger-positions = #'(6 8 9 10)
  g''->

  \once \override Script.ledger-positions = #'(3  13)
  c'''\segno

  \fine
}



% ****************************************************************
% end ly snippet
% ****************************************************************
