1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
6 % This file is in the public domain.
7 %% Note: this file works from version 2.19.56
11 lsrtags = "paper-and-layout"
14 This code shows how to clip (extract) snippets from a full score.
16 This file needs to be run separately with @code{-dclip-systems}; the
17 snippets page may not adequately show the results.
19 The result will be files named
20 @samp{base-from-start-to-end[-count].eps}.
23 If system starts and ends are included, they include extents of the
24 System grob, e.g., instrument names.
27 Grace notes at the end point of the region are not included.
30 Regions can span multiple systems. In this case, multiple EPS files
34 doctitle = "Clip systems"
37 #(ly:set-option 'clip-systems)
38 #(define output-suffix "1")
42 \new Staff \with { instrumentName = "Instrument" } % begin verbatim
59 % Each clip-region is a (START . END) pair
60 % where both are rhythmic-locations.
62 % (make-rhythmic-locations BAR-NUMBER NUM DEN)
63 % means NUM/DEN whole-notes into bar numbered BAR-NUMBER
67 (make-rhythmic-location 2 0 1)
68 (make-rhythmic-location 4 0 1))
71 (make-rhythmic-location 0 0 1)
72 (make-rhythmic-location 4 0 1))
75 (make-rhythmic-location 0 0 1)
76 (make-rhythmic-location 6 0 1))
82 #(ly:set-option 'clip-systems #f)
83 #(define output-suffix #f)
87 \markup { \bold \fontsize #6 clips }
90 \markup { from-2.0.1-to-4.0.1-clip.eps }
92 \epsfile #X #30.0 #(format #f "~a-1-from-2.0.1-to-4.0.1-clip.eps"
93 (ly:parser-output-name)) }