]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/clip-systems.ly
[doc] Handle leading dash in @code.
[lilypond.git] / input / regression / clip-systems.ly
index 1893821eeed89452301d90edbbeb527d3ce815aa..f38f163886f573ec68c0dbbc477235d412659b29 100644 (file)
@@ -9,53 +9,76 @@ Notes:
 @item Regions can span multiple systems. In this case, multiple EPS files are generated.
 @end itemize
 
-This file needs to be run separately with @code{-dclip-systems}; the
+This file needs to be run separately with @option{-dclip-systems}; the
 collated-files.html of the regression test does not adequately show
 the results.
 
-The result will be files named @file{@var{base}-system-@var{systemnumber}-@var{start}-@var{end}.eps}.
-
+The result will be files named
+@file{@var{base}-from-@var{start}-to-@var{end}[-@var{count}].eps}.
 "
 
 }
 
-\version "2.9.23"
+\version "2.14.0"
 
+#(ly:set-option 'clip-systems)
+#(define output-suffix "1")
 
-% each clip-region is a (START . END) pair
-% where both are rhythmic-locations.
+origScore = \score{
+    \relative c' {
+      \set Staff.instrumentName = #"bla"
+      c1
+      d
+      \grace c16
+      e1
+      \key d\major
+      
+      f
+      \break  \clef bass
+      g,
+      fis
+    }  
+}
 
-% (make-rhythmic-locations BAR-NUMBER NUM DEN)
-% means NUM/DEN whole-notes into bar numbered BAR-NUMBER
+\book { 
+  \score {
+    \origScore
+    \layout {
 
-\paper {
+      %% each clip-region is a (START . END) pair
+      %% where both are rhythmic-locations.
+      
+      %% (make-rhythmic-locations BAR-NUMBER NUM DEN)
+      %% means NUM/DEN whole-notes into bar numbered BAR-NUMBER
 
-  clip-regions
-  = #(list
-      (cons
-       (make-rhythmic-location 2 0 1)
-       (make-rhythmic-location 4 0 1))
+      clip-regions
+      = #(list
+         (cons
+          (make-rhythmic-location 2 0 1)
+          (make-rhythmic-location 4 0 1))
 
-      (cons
-       (make-rhythmic-location 0 0 1)
-       (make-rhythmic-location 4 0 1))
-      
-      (cons
-       (make-rhythmic-location 0 0 1)
-       (make-rhythmic-location 6 0 1))
-    )
+         (cons
+          (make-rhythmic-location 0 0 1)
+          (make-rhythmic-location 4 0 1))
+         
+         (cons
+          (make-rhythmic-location 0 0 1)
+          (make-rhythmic-location 6 0 1))
+       )
+    }
+  }
 }
 
-\relative {
-  \set Staff.instrumentName = #"bla"
-  c1
-  d
-  \grace c16
-  e1
-  \key d\major
-  
-  f
-  \break  \clef bass
-  g,
-  fis
-}  
+#(ly:set-option 'clip-systems #f)
+#(define output-suffix #f)
+
+\book {
+  \score { \origScore }
+  \markup { \bold \fontsize #6 clips }
+  \score {
+    \lyrics {
+      \markup { from-2.0.1-to-4.0.1-clip.eps }
+      \markup { \epsfile #X #30.0 #(format #f "~a-1-from-2.0.1-to-4.0.1-clip.eps" (ly:parser-output-name parser)) }
+    }
+  }
+}