1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
6 lsrtags = "paper-and-layout"
9 This code shows how to clip (extract) 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 @samp{base-from-start-to-end[-count].eps}.
18 If system starts and ends are included, they include extents of the
19 System grob, e.g., instrument names.
22 Grace notes at the end point of the region are not included.
25 Regions can span multiple systems. In this case, multiple EPS files
29 doctitle = "Clip systems"
32 #(ly:set-option 'clip-systems)
33 #(set! output-count 1)
37 \set Staff.instrumentName = #"bla"
53 % Each clip-region is a (START . END) pair
54 % where both are rhythmic-locations.
56 % (make-rhythmic-locations BAR-NUMBER NUM DEN)
57 % means NUM/DEN whole-notes into bar numbered BAR-NUMBER
61 (make-rhythmic-location 2 0 1)
62 (make-rhythmic-location 4 0 1))
65 (make-rhythmic-location 0 0 1)
66 (make-rhythmic-location 4 0 1))
69 (make-rhythmic-location 0 0 1)
70 (make-rhythmic-location 6 0 1))
76 #(set! output-count 0)
77 #(ly:set-option 'clip-systems #f)
81 \markup { \bold \fontsize #6 clips }
84 \markup { from-2.0.1-to-4.0.1-clip.eps }
86 \epsfile #X #30.0 #(format #f "~a-1-from-2.0.1-to-4.0.1-clip.eps"
87 (ly:parser-output-name parser)) }