%% 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.27.2/input/regression/set-measure-length-from-here-with-partial.ly"
\sourcefileline 0
\version "2.27.2"

\header {
  texidoc = "When @code{\\setMeasureLengthFromHere} and @code{\\partial} are
used in the same time step, the new position is set relative to the new length.
Measures@tie{}1 and@tie{}3 should be beamed as @code{3,2,2}."
}

#(ly:set-option 'warning-as-error #t)

\layout {
  \context {
    \Score
    barNumberVisibility = #(every-nth-bar-number-visible 1)
    \override BarNumber.break-visibility = #all-visible
    \overrideTimeSignatureSettings 6/8 1/8 3,1,1,1,2,2 #'()
  }
}

music = \fixed c' {
  \time 6/8
  \partial 8*3
  d8 d8 d8 |
  e8 e8 e8 % measurePosition is 8*3
  %% extend this measure to 8*10 (3+7), but skip 8*3 (7-4) in the middle
  \partial 8*4 \setMeasureLengthFromHere 8*7
  \contextPropertyCheck Timing.measureLength #10/8
  e8 e8 e8 e8 |
  \setDefaultMeasureLength
  \contextPropertyCheck Timing.measureLength #6/8
  f8 f8 f8 f8 f8 f8 |
  g8 g8 g8 % measurePosition is 8*3
  %% extend this measure to 8*10 (3+7), but skip 8*3 (7-4) in the middle
  \setMeasureLengthFromHere 8*7 \partial 8*4
  \contextPropertyCheck Timing.measureLength #10/8
  g8 g8 g8 g8 |
  \setDefaultMeasureLength
  \contextPropertyCheck Timing.measureLength #6/8
}

\new Score { \music }



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