~ubuntu-branches/ubuntu/precise/lilypond/precise

« back to all changes in this revision

Viewing changes to input/regression/tag-filter.ly

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Bushnell, BSG
  • Date: 2006-12-19 10:18:12 UTC
  • mfrom: (3.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061219101812-7awtjkp0i393wxty
Tags: 2.8.7-3
scripts/midi2ly.py: When setting DATADIR, find Lilypond python files
in the @TOPLEVEL_VERSION@ directory, not 'current'.  Patch thanks to
Chris Lamb (chris@chris-lamb.co.uk).  (Closes: #400550)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
 
\version "2.2.0"
 
2
\version "2.7.39"
3
3
\header {
4
4
 
5
 
texidoc = "The @code{\\tag} command marks music expressions with a
 
5
  texidoc = "The @code{\\tag} command marks music expressions with a
6
6
name. These tagged expressions can be filtered out later. This
7
7
mechanism can be used to make different versions of the same music. In
8
8
this example, the top stave displays the music expression with all
11
11
 
12
12
}
13
13
 
14
 
\paper { raggedright= ##t }
 
14
\layout { ragged-right= ##t }
15
15
 
16
16
common =
17
 
\notes \relative c''  {
18
 
 
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
 
\score {
34
 
    \notes \simultaneous { 
35
 
    \new Staff {
36
 
        \set Staff.instrument = #"both"
37
 
        \common
38
 
        }
39
 
    \new Staff {
40
 
        \set Staff.instrument = #"part"
41
 
        \apply #(remove-tag 'score) \common
42
 
        }
43
 
    \new Staff {
44
 
        \set Staff.instrument = #"score"
45
 
        \apply #(remove-tag 'part) \common
46
 
        }
47
 
    }
48
 
}
 
17
\relative c''  {
 
18
 
 
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
 
 
34
\simultaneous { 
 
35
  \new Staff {
 
36
    \set Staff.instrument = #"both"
 
37
    \common
 
38
  }
 
39
  \new Staff {
 
40
    \set Staff.instrument = #"part"
 
41
    \keepWithTag #'part \common
 
42
  }
 
43
  \new Staff {
 
44
    \set Staff.instrument = #"score"
 
45
    \keepWithTag #'score \common
 
46
  }
 
47
}
 
48
 
49
49
 
50
50
 
51
51