%% 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/polymetric-time-scaled-senza-misura.ly"
\sourcefileline 0
\version "2.25.32"

\header {
  texidoc = "This test defines a @code{\\senzaMisura} command (which may be
added to LilyPond once all required infrastructure is ready) and demonstrates
that @code{\\polymetric \\senzaMisura} can be used to set scalable timing
properties in a local context just as @code{\\polymetric \\time} can.

No time signature or bar lines appear in the output.  The notes within the
phrasing slur are scaled to 2/3 of their written duration, but they are beamed
in pairs like the unscaled notes (not as triplets)."
}

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

#(when (defined? 'senzaMisura) (error "update this test"))
senzaMisura =
#(define-music-function () ()
  (make-music 'ReferenceTimeSignatureMusic 'time-signature #f))

\new Score \with {
  forbidBreakBetweenBarLines = ##f
  %% Allow some beams to help reviewers count notes.
  \overrideTimeSignatureSettings
    ##f       % timeSignature
    #1/4      % beatBase
    #'(1)     % beatStructure, but no measureStructure
    #'()      % beamExceptions
  \submeasureBarsOn % but we expect not to see any!
} <<
  \new Staff {
    \senzaMisura

    \contextPropertyCheck Timing.beamExceptions #'()
    \contextPropertyCheck Timing.beatBase #1/4
    \contextPropertyCheck Timing.beatStructure #'(1)
    \contextPropertyCheck Timing.measureLength #+inf.0
    \contextPropertyCheck Timing.meterScalingFactor \default
    \contextPropertyCheck Timing.submeasureStructure #'()

    \contextPropertyCheck Staff.beamExceptions \default
    \contextPropertyCheck Staff.beatBase \default
    \contextPropertyCheck Staff.beatStructure \default
    \contextPropertyCheck Staff.measureLength \default
    \contextPropertyCheck Staff.meterScalingFactor \default
    \contextPropertyCheck Staff.submeasureStructure \default

    \repeat unfold 12 c'8
  }
  \new Staff {
    \repeat unfold 4 c'8
    \scaleDurations 2/3 {
      \context Staff \polymetric \senzaMisura
      \contextPropertyCheck Staff.beamExceptions #'()
      \contextPropertyCheck Staff.beatBase #1/4
      \contextPropertyCheck Staff.beatStructure #'(1)
      \contextPropertyCheck Staff.measureLength \default
      \contextPropertyCheck Staff.meterScalingFactor #2/3
      \contextPropertyCheck Staff.submeasureStructure #'()
      c'8\( \repeat unfold 4 c'8 c'8\)
      \context Staff \polymetric \default
    }
    \repeat unfold 4 c'8
  }
>>



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