1 % Do not edit this file; it is automatically
2 % generated from Documentation/snippets/new
3 % This file is in the public domain.
4 %% Note: this file works from version 2.13.4
8 lsrtags = "paper-and-layout"
11 This code shows how to clip (extract) snippets from a full score.
13 This file needs to be run separately with @code{-dclip-systems}; the
14 snippets page may not adequately show the results.
16 The result will be files named
17 @samp{base-from-start-to-end[-count].eps}.
20 If system starts and ends are included, they include extents of the
21 System grob, e.g., instrument names.
24 Grace notes at the end point of the region are not included.
27 Regions can span multiple systems. In this case, multiple EPS files
31 doctitle = "Clip systems"
35 #(ly:set-option 'clip-systems)
36 #(define output-suffix "1")
40 \set Staff.instrumentName = #"bla"
56 % Each clip-region is a (START . END) pair
57 % where both are rhythmic-locations.
59 % (make-rhythmic-locations BAR-NUMBER NUM DEN)
60 % means NUM/DEN whole-notes into bar numbered BAR-NUMBER
64 (make-rhythmic-location 2 0 1)
65 (make-rhythmic-location 4 0 1))
68 (make-rhythmic-location 0 0 1)
69 (make-rhythmic-location 4 0 1))
72 (make-rhythmic-location 0 0 1)
73 (make-rhythmic-location 6 0 1))
79 #(ly:set-option 'clip-systems #f)
80 #(define output-suffix #f)
84 \markup { \bold \fontsize #6 clips }
87 \markup { from-2.0.1-to-4.0.1-clip.eps }
89 \epsfile #X #30.0 #(format #f "~a-1-from-2.0.1-to-4.0.1-clip.eps"
90 (ly:parser-output-name parser)) }