%% 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)),quote]
\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))
  line-width = 160\mm - 2.0 * 10.16\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 "snippets/irregular-measures.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from `Documentation/snippets/new/`.
%%
%% Make any changes in `Documentation/snippets/new/`,
%% then run `scripts/auxiliar/makelsr.pl --new`.
%%
%% This file is in the public domain.
%%
%% Note: this file needs at least LilyPond version 2.27.4.

\version "2.27.4"

\header {
  categories = "Real music, Rhythms"

  texidoc = "
@qq{Es ist ein Ros entsprungen} was first published without bar lines in
@cite{Musae Sioniae} (1609).  This example adds irregular measures to the
melody.

The @code{\\measure} command works for complete measures.  The full length of
the incomplete measure at the end of the repeated section is specified with
@code{\\setMeasureLengthFromHere} to preserve correctness if the repeat were
unfolded.  In isolation, @code{\\setMeasureLengthFromHere} would normally be
followed at the end of the measure by @code{\\setDefaultMeasureLength} to
revert to the time signature's measure length, but that is unnecessary in this
case because the following measure is also irregular.
"

  doctitle = "Irregular measures"
} % begin verbatim


\layout {
  \verboseBarNumbers
}

\fixed c' {
  \time 2/2
  \key f \major
  \repeat volta 2 {
    \premeasure { c'1 }
    \measure { c'2 c' d' c' }
    \measure { c'1 a bes }
    \measure { a2 g1 f e2 }
    \setMeasureLengthFromHere 1*2
    f1
    \break
  }
  r2 a |
  \measure { g2 e f d }
  \measure { c1 r2 c' }
  \measure { c'2 c' d' c' }
  \measure { c'1 a bes }
  \measure { a2 g1 f e2 }
  \measure { f\longa }
  \fine
}



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