%% 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/duration-line-thickness-staff-sizes.ly"
\sourcefileline 0
\version "2.23.9"

\header {
  texidoc = "The visible thickness of a duration line is adjusted properly
according to the staff space for all styles, like for long compressed
@code{MultiMeasureRest}.
Changes in @code{StaffSymbol.thickness} are disregarded."
}

mus = {
  \override DurationLine.bound-details.right.end-style = #'hook
  b'1\-
  \override DurationLine.bound-details.right.end-style = #'arrow
  \override DurationLine.style = #'line
  b'\-
  \override DurationLine.style = #'dashed-line
  b'\-
  \override DurationLine.style = #'dotted-line
  b'\-
  \override DurationLine.style = #'zigzag
  b'\-
  \override DurationLine.style = #'trill
  b'\-
  \override DurationLine.style = #'none
  b'\-
  \compressEmptyMeasures
  R1*20
}

\score {
 <<
  \new StaffGroup
    \with {
      instrumentName =
        \markup \column {
          "changed"
          "StaffSymbol"
          "staff-space"
        }
    }
    <<
      \new Staff
        \with {
          \override StaffSymbol.staff-space = #(magstep 6)
        }
        {
          <>^
            \markup
            \override #'(line-width . 70)
            \justify-string
              #"With changed staff-space (and unchanged StaffSymbol.thickness),
              DurationLine is adjusted nicely.  For trill style one would need
              to set grob.font-size (here done) or context.fontSize
              additionally."
          \override DurationLine.font-size = #6
          \mus
        }
      \new Staff
        \mus
      \new Staff
        \with {
          \override StaffSymbol.staff-space = #(magstep -6)
        }
        {
          \override DurationLine.font-size = #-6
          \mus
        }
    >>

  \new StaffGroup
    \with { instrumentName = "\\magnifyStaff" }
    <<
      \new Staff
        \with { \magnifyStaff #(magstep 6) }
        {
          <>^\markup \fontsize #-6"\\magnifyStaff"
          \mus
        }
      \new Staff
        \mus
      \new Staff
        \with { \magnifyStaff #(magstep -6) }
        \mus
    >>

  \new StaffGroup
    \with {
      instrumentName =
        \markup \column {
          "changed"
          "StaffSymbol"
          "thickness"
        }
    }
    <<
      \new Staff
        \with { \override StaffSymbol.thickness = #(magstep 6) }
        {
         <>^
           \markup \column {
            "With unchanged staff-space and modified StaffSymbol.thickness,"
            "DurationLine keeps unchanged."
           }
         \mus
        }
      \new Staff
        \mus
      \new Staff
        \with { \override StaffSymbol.thickness = #(magstep -6) }
        \mus
    >>
 >>
 \layout {
   indent = 15
   \context {
     \StaffGroup
     \override InstrumentName.font-size = #-2
   }
   \context {
     \Voice
     \consists "Duration_line_engraver"
     %% If broken and end-style is set:
     \override DurationLine.after-line-breaking = ##t
     \override DurationLine.minimum-length-after-break = 10
   }
 }
}



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