MIDI: fix regtest failure
[lilypond/patrick.git] / input / regression / context-mod-with.ly
blob377d3ef81b0b69a16a01ee55229f3ca44b8e562c
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 into another \with block."
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 % No modifications:
19 \new Staff { \music }
20 % Some context modifications manually written in a \with block
21 \new Staff \with {
22 \remove "Time_signature_engraver"
23 \consists "Ambitus_engraver"
24 \override StaffSymbol #'line-count = 4
25 } { \music }
26 % The same mods as direct value of \with
27 \new Staff \with \ctxmod { \music }
28 % Mods as part of a \with block
29 \new Staff \with { \ctxmod } { \music }
30 % Mods before a context mod in a with block are working:
31 \new Staff \with {
32 \remove "Clef_engraver"
33 \ctxmod
34 } { \music }
35 % Mods before and after a context mod in a with block are working:
36 \new Staff \with {
37 \remove "Clef_engraver"
38 \ctxmod
39 \remove "Key_engraver"
40 } { \music }
41 % Mods can be inserted instead of a \with block (i.e. \with is not required)
42 \new Staff \ctxmod { \music }
43 \new Staff { \music }