1 %% Do not edit this file; it is auto-generated from input/new
3 \layout { ragged-right= ##t }
5 doctitle = "Clip systems"
6 lsrtags = "paper-and-layout" % a new tag like "Mixing text and music" or
7 % "Special output" might be more adequate -jm
9 This code shows how to clip (extracts) snippets from a full score.
11 This file needs to be run separately with @code{-dclip-systems}; the
12 snippets page may not adequately show the results.
14 The result will be files named
15 @file{@var{base}-from-@var{start}-to-@var{end}[-@var{count}].eps}.
18 @item If system starts and ends are included, they include extents of the System grob, eg. instrument names.
19 @item Grace notes at the end point of the region are not included.
20 @item Regions can span multiple systems. In this case, multiple EPS files are generated.
25 #(ly:set-option 'clip-systems)
27 #(set! output-count 1)
31 \set Staff.instrumentName = #"bla"
50 %% each clip-region is a (START . END) pair
51 %% where both are rhythmic-locations.
53 %% (make-rhythmic-locations BAR-NUMBER NUM DEN)
54 %% means NUM/DEN whole-notes into bar numbered BAR-NUMBER
59 (make-rhythmic-location 2 0 1)
60 (make-rhythmic-location 4 0 1))
63 (make-rhythmic-location 0 0 1)
64 (make-rhythmic-location 4 0 1))
67 (make-rhythmic-location 0 0 1)
68 (make-rhythmic-location 6 0 1))
74 #(set! output-count 0)
75 #(ly:set-option 'clip-systems #f)
79 \markup { \bold \fontsize #6 clips }
82 \markup { from-2.0.1-to-4.0.1-clip.eps }
83 \markup { \epsfile #X #30.0 #(format #f "~a-1-from-2.0.1-to-4.0.1-clip.eps" (ly:parser-output-name parser)) }