MIDI: fix regtest failure
[lilypond/patrick.git] / input / regression / context-mod-context.ly
blob020db8c465d2d5474a5de8284a6f5384a933dc04
1 \version "2.13.18"
3 \header {
4 texidoc = "Context modifications can be stored into a variable as a
5 \with object. They can be later inserted directly into a context definition."
8 % Some sample modifications to be inserted into a \with block later on
9 ctxmod = \with {
10 \remove "Time_signature_engraver"
11 \consists "Ambitus_engraver"
12 \override StaffSymbol #'line-count = 4
15 music = \relative c'' { \key fis \minor c1 d e }
17 \score { <<
18 \new Staff { \music}
20 \layout {
21 \context { \Staff
22 \ctxmod
23 \override NoteHead #'style = #'petrucci
29 \score { <<
30 \new Staff { \music}
32 \layout {
33 \context { \Staff
34 \override StaffSymbol #'line-count = 3
35 \override NoteHead #'style = #'petrucci
37 % Should override the above definitions, but not reset others
38 \context { \Staff
39 \ctxmod