X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Ftag-filter.ly;h=0c4be0b3e64478568775c317090e8fe81225467e;hb=97a0169312a260933246ab224e4f8b0969871dd5;hp=ce126b90178ed986b1d90f2522d803aff63d40ba;hpb=ecaf73bb03e974018c17e3051b3ac3a805dd1653;p=lilypond.git diff --git a/input/regression/tag-filter.ly b/input/regression/tag-filter.ly index ce126b9017..0c4be0b3e6 100644 --- a/input/regression/tag-filter.ly +++ b/input/regression/tag-filter.ly @@ -1,8 +1,8 @@ -\version "2.1.28" +\version "2.19.21" \header { -texidoc = "The @code{\\tag} command marks music expressions with a + texidoc = "The @code{\\tag} command marks music expressions with a name. These tagged expressions can be filtered out later. This mechanism can be used to make different versions of the same music. In this example, the top stave displays the music expression with all @@ -11,43 +11,43 @@ notes and fingerings, but the score has not." } -\paper { raggedright= ##t } +\layout { ragged-right= ##t } common = -\notes \relative c'' { - - c1 - \relative c' << - \tag #'part << - R1 \\ - { - \set fontSize = #-1 - c4_"cue" f2 g4 } - >> - \tag #'score R1 - >> - c1-\tag #'part ^4 +\relative { + + c''1 + \relative c' << + \tag #'part << + R1 \\ + { + \set fontSize = #-1 + c4_"cue" f2 g4 } + >> + \tag #'score R1 + >> + c1-\tag #'part ^4 } -\score { - \notes \simultaneous { - \new Staff { - \set Staff.instrument = #"both" - \common - } - \new Staff { - \set Staff.instrument = #"part" - \apply #(remove-tag 'score) \common - } - \new Staff { - \set Staff.instrument = #"score" - \apply #(remove-tag 'part) \common - } - } + +\simultaneous { + \new Staff { + \set Staff.instrumentName = #"both" + \common + } + \new Staff { + \set Staff.instrumentName = #"part" + \keepWithTag #'part \common + } + \new Staff { + \set Staff.instrumentName = #"score" + \keepWithTag #'score \common + } } +