MIDI: fix regtest failure
[lilypond/patrick.git] / input / regression / tag-filter.ly
blobdca241b0d7156ef6327f067e05e3b29aa68d981f
2 \version "2.12.0"
3 \header {
5 texidoc = "The @code{\\tag} command marks music expressions with a
6 name. These tagged expressions can be filtered out later. This
7 mechanism can be used to make different versions of the same music. In
8 this example, the top stave displays the music expression with all
9 tags included. The bottom two staves are filtered: the part has cue
10 notes and fingerings, but the score has not."
14 \layout { ragged-right= ##t }
16 common =
17 \relative c'' {
20 \relative c' <<
21 \tag #'part <<
22 R1 \\
24 \set fontSize = #-1
25 c4_"cue" f2 g4 }
27 \tag #'score R1
29 c1-\tag #'part ^4
34 \simultaneous {
35 \new Staff {
36 \set Staff.instrumentName = #"both"
37 \common
39 \new Staff {
40 \set Staff.instrumentName = #"part"
41 \keepWithTag #'part \common
43 \new Staff {
44 \set Staff.instrumentName = #"score"
45 \keepWithTag #'score \common