%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm]
\include "lilypond-book-preamble.ly"


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



\paper {
  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 "/home/gub/NewGub/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-stable-2.22/input/regression/duration-line-start-stop.ly"
\sourcefileline 0
\version "2.21.3"

\header {
  texidoc = "A @code{DurationLine} grob may start/end at @code{NoteHead},
@code{Rest}, @code{skip-event} (if forced, otherwise skips are passed),
@code{NoteHead}s of @code{EventChord} or at an entire @code{NoteColumn}.
Start/end at @code{MultiMeasureRest} is only basically supported.

It stops automatically if the @code{Voice} pauses, i.e., no rhythmical events
happen for some time, and at end of score.

Avoids @code{Dots} (if forced), @code{Accidental}s and @code{Arpeggio}
(per changeable default)."
}

\layout {
  \context {
    \Voice
    \consists "Duration_line_engraver"
    \omit Stem
    \omit Flag
    \omit Beam
    \override NoteHead.duration-log = 2
  }
}

skipUp = \markup \column { "↑" "skip" }
skipDown = \markup \column { "skip" "↓" }

{
  b4\- b
  r4\- r
  b4\- s_\skipUp s^\skipDown b
  \set startAtSkip = ##t
  \set endAtSkip = ##t
  s2_\skipUp\- s^\skipDown
  \unset startAtSkip
  \unset endAtSkip
  \once \override DurationLine.thickness = 3
  <g' c'' d''>\- <g' b' d''>
  \once \set startAtNoteColumn = ##t
  \once \override DurationLine.thickness = 25
  \once \override DurationLine.bound-details.left.padding = 0.2
  <g' c'' d''>\- <g' b' d''>
  R1\- R
  b''2\- \new Voice d'
  \once \override DurationLine.bound-details.left.start-at-dot = ##t
  <g' c'' d''>2.\- s4
  s2 <gis' cis'' dis''>\arpeggio
  \override DurationLine.bound-details.right.end-on-arpeggio = ##f
  <g' c'' d''>2\- <gis' cis'' dis''>\arpeggio
  \override DurationLine.bound-details.right.end-on-accidental = ##f
  <g' c'' d''>2\- <gis' cis'' dis''>\arpeggio
  b'1\-
  \bar "|."
}


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