%% 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.3/input/regression/beam-fractional-beat-structure.ly"
\sourcefileline 0
\version "2.27.3"

\header {
  texidoc = "A fractional @code{beatStructure} does not disturb beamlet
placement.  Beat lengths are rational (not necessarily integral).  A
beamlet whose direction depends on the beat structure must still be
placed when the beat it points at is a fraction of @code{beatBase}."
}

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

\layout {
  indent = 0
  ragged-right = ##t
  \context {
    \Score
    %% Timing_translator complains if timeSignatureSettings is empty.
    timeSignatureSettings = #'((dummy . dummy))
  }
}

%% The middle stem carries more beams than either neighbour, so beamify()
%% consults the beat structure to decide which way its beamlet points.

%% A structure given to \time, with the fractional beat first.
\score {
  \new Staff {
    \time #'(1/2 1 1) #'(5/2 . 4)
    c''16[ c'' c''8] c''16[ c'' c'' c''8]
  }
}

%% A structure derived from a fractional time signature places the
%% fractional beat last, so the beam has to come late enough in the measure
%% to reach it: (1 1 1/2) here, and (1 1 2/3) below.
\score {
  \new Staff {
    \time #'(5/2 . 4)
    c''4 c''4 c''16[ c'' c''8]
  }
}

\score {
  \new Staff {
    \time #'(8/3 . 4)
    c''4 c''4 c''16[ c'' c''8]
  }
}



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