3 lsrtags = "paper-and-layout" % a new tag like "Mixing text and music" or
4 % "Special output" might be more adequate -jm
6 This code shows how to clip (extract) snippets from a full score.
8 This file needs to be run separately with @code{-dclip-systems}; the
9 snippets page may not adequately show the results.
11 The result will be files named
12 @file{@var{base}-from-@var{start}-to-@var{end}[-@var{count}].eps}.
16 If system starts and ends are included, they include extents of the
17 System grob, e.g., instrument names.
20 Grace notes at the end point of the region are not included.
23 Regions can span multiple systems. In this case, multiple EPS files
28 doctitle = "Clip systems"
31 #(ly:set-option 'clip-systems)
32 #(set! output-count 1)
36 \set Staff.instrumentName = #"bla"
52 % Each clip-region is a (START . END) pair
53 % where both are rhythmic-locations.
55 % (make-rhythmic-locations BAR-NUMBER NUM DEN)
56 % means NUM/DEN whole-notes into bar numbered BAR-NUMBER
60 (make-rhythmic-location 2 0 1)
61 (make-rhythmic-location 4 0 1))
64 (make-rhythmic-location 0 0 1)
65 (make-rhythmic-location 4 0 1))
68 (make-rhythmic-location 0 0 1)
69 (make-rhythmic-location 6 0 1))
75 #(set! output-count 0)
76 #(ly:set-option 'clip-systems #f)
80 \markup { \bold \fontsize #6 clips }
83 \markup { from-2.0.1-to-4.0.1-clip.eps }
85 \epsfile #X #30.0 #(format #f "~a-1-from-2.0.1-to-4.0.1-clip.eps"
86 (ly:parser-output-name parser)) }