]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/clip-systems.ly
Merge branch 'origin' into master-hanwen
[lilypond.git] / input / regression / clip-systems.ly
1 \header {
2   texidoc = "Clipping snippets from a finished score
3
4 Notes:
5
6 @itemize @bullet
7 @item If system starts and ends are included, they include extents of the System grob, eg. instrument names.
8 @item Grace notes  at the end point of the region are not included
9 @item Regions can span multiple systems. In this case, multiple EPS files are generated.
10 @end itemize
11
12 This file needs to be run separately with @code{-dclip-systems}; the
13 collated-files.html of the regression test does not adequately show
14 the results.
15
16 The result will be files named
17 @file{@var{base}-from-@var{start}-to-@var{end}[-@var{count}].eps}.
18 "
19
20 }
21
22 \version "2.10.0"
23
24
25 % each clip-region is a (START . END) pair
26 % where both are rhythmic-locations.
27
28 % (make-rhythmic-locations BAR-NUMBER NUM DEN)
29 % means NUM/DEN whole-notes into bar numbered BAR-NUMBER
30
31 \paper {
32
33   clip-regions
34   = #(list
35       (cons
36        (make-rhythmic-location 2 0 1)
37        (make-rhythmic-location 4 0 1))
38
39       (cons
40        (make-rhythmic-location 0 0 1)
41        (make-rhythmic-location 4 0 1))
42       
43       (cons
44        (make-rhythmic-location 0 0 1)
45        (make-rhythmic-location 6 0 1))
46     )
47 }
48
49 \relative {
50   \set Staff.instrumentName = #"bla"
51   c1
52   d
53   \grace c16
54   e1
55   \key d\major
56   
57   f
58   \break  \clef bass
59   g,
60   fis
61 }