]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/clip-systems.ly
typecheck barnumber.
[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}-system-@var{systemnumber}-@var{start}-@var{end}.eps}.
18
19 "
20
21 }
22
23 \version "2.9.23"
24
25
26 % each clip-region is a (START . END) pair
27 % where both are rhythmic-locations.
28
29 % (make-rhythmic-locations BAR-NUMBER NUM DEN)
30 % means NUM/DEN whole-notes into bar numbered BAR-NUMBER
31
32 \paper {
33
34   clip-regions
35   = #(list
36       (cons
37        (make-rhythmic-location 2 0 1)
38        (make-rhythmic-location 4 0 1))
39
40       (cons
41        (make-rhythmic-location 0 0 1)
42        (make-rhythmic-location 4 0 1))
43       
44       (cons
45        (make-rhythmic-location 0 0 1)
46        (make-rhythmic-location 6 0 1))
47     )
48 }
49
50 \relative {
51   \set Staff.instrumentName = #"bla"
52   c1
53   d
54   \grace c16
55   e1
56   \key d\major
57   
58   f
59   \break  \clef bass
60   g,
61   fis
62 }