%% 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.5/input/regression/override-syntax-in-context-spec-or-mod.ly"
\sourcefileline 0
\version "2.27.5"

\header {
  texidoc = "
The argument lists of @code{\\override} and @code{\\revert} in context
modifications are parsed in the same manner (discarding any leading
context name) whether they are parsed directly or in the form of a
music expression (like it happens when preceded by @code{\\once}).

The output should color noteheads, stems, and beam in the first half
measure and revert to black afterwards."  }

\layout {
  \context {
    \Voice
    \override Beam.color = #blue
    \override Voice.NoteHead.color = #red
    \once \override Stem.color = #green
  }
}

{
  \*4 8
  \new Voice \with {
    \revert Beam.color
    \revert Voice.NoteHead.color
    \once \revert Stem.color } \*4 8
}



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