%% 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/unpure-pure-container.ly"
\sourcefileline 0
\version "2.25.0"

\header {
  texidoc = "unpure-pure containers take two arguments: an unpure property and
a pure property.  The pure property is evaluated (and cached) for all
pure calculations, and the unpure is evaluated for all unpure calculations.
In this regtest, there are three groups of two eighth notes.  In the first
group, the second note should move to accommodate the flag, whereas it should
not in the second group and in the third group because it registers the
flag as being higher. The flag, however, remains at the Y-offset dictated
by @code{ly:flag::calc-y-offset}. In the fourth set of two 8th notes, the
flag should be pushed up to a Y-offset of 8.
"
}

\relative {
  \stemUp \autoBeamOff
  d'8 eis'
  \once \override Flag.Y-offset =
    #(ly:make-unpure-pure-container ly:flag::calc-y-offset 8)
  d,8 eis'!
  % This used to raise a type checking error.
  \once \applyOutput Voice.Flag
    #(lambda (grob context origin-context)
       (ly:grob-set-property!
        grob
        'Y-offset
        (ly:make-unpure-pure-container ly:flag::calc-y-offset 8)))
  d,8 eis'!
  \once \override Flag.Y-offset = #8
  d,8 eis'!
}



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