]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/parts/tag-filter.ly
LSR: add new categories.
[lilypond.git] / input / lsr / parts / tag-filter.ly
1 %%  Do not edit this file; it is auto-generated from LSR!
2 \version "2.11.23"
3
4 \header { texidoc = "
5 The @code{\tag} command marks music expressions with a name. These
6 tagged expressions can be filtered out later. This mechanism can be
7 used to make different versions of the same music. In this example, the
8 top stave displays the music expression with all tags included. The
9 bottom two staves are filtered: the part has cue notes and fingerings,
10 but the score has not. 
11 " }
12
13 \layout {
14   ragged-right= ##t 
15 }
16
17 common =
18 \relative c''  {
19   c1
20   \relative c' <<
21     \tag #'part <<
22       R1 \\
23       {
24         \set fontSize = #-1
25         c4_"cue" f2 g4 } 
26     >>
27     \tag #'score R1
28   >>
29   c1-\tag #'part ^4
30 }
31
32
33 \simultaneous { 
34   \new Staff {
35     \set Staff.instrumentName = #"both"
36     \common
37   }
38   \new Staff {
39     \set Staff.instrumentName = #"part"
40     \keepWithTag #'part \common
41   }
42   \new Staff {
43     \set Staff.instrumentName = #"score"
44     \keepWithTag #'score \common
45   }
46 }
47
48