]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/new/clip-systems.ly
Merge master into nested-bookparts
[lilypond.git] / input / new / clip-systems.ly
index 1eaead2f343bba02261e2c7eb05aa033d246e551..e37bf09df13bb0a0f7edcdf523f278bacf6e99a9 100644 (file)
@@ -1,11 +1,9 @@
-\version "2.10.0"
-\layout { ragged-right= ##t }
+\version "2.11.61"
 \header {
-  doctitle = "Clip systems"
   lsrtags = "paper-and-layout"  % a new tag like "Mixing text and music" or
 % "Special output" might be more adequate -jm
   texidoc = "
-This code shows how to clip (extracts) snippets from a full score.
+This code shows how to clip (extract) snippets from a full score.
 
 This file needs to be run separately with @code{-dclip-systems}; the
 snippets page may not adequately show the results.
@@ -13,59 +11,63 @@ snippets page may not adequately show the results.
 The result will be files named
 @file{@var{base}-from-@var{start}-to-@var{end}[-@var{count}].eps}.
 
-@itemize @bullet
-@item If system starts and ends are included, they include extents of the System grob, eg. instrument names.
-@item Grace notes at the end point of the region are not included.
-@item Regions can span multiple systems. In this case, multiple EPS files are generated.
+@itemize
+@item
+If system starts and ends are included, they include extents of the
+System grob, e.g., instrument names.
+
+@item
+Grace notes at the end point of the region are not included.
+
+@item
+Regions can span multiple systems.  In this case, multiple EPS files
+are generated.
+
 @end itemize
 "
+  doctitle = "Clip systems"
 }
 
 #(ly:set-option 'clip-systems)
-
 #(set! output-count 1)
 
-origScore = \score{
-    \relative {
-      \set Staff.instrumentName = #"bla"
-      c1
-      d
-      \grace c16
-      e1
-      \key d\major
-      
-      f
-      \break  \clef bass
-      g,
-      fis
-    }  
+origScore = \score {
+  \relative c' {
+    \set Staff.instrumentName = #"bla"
+    c1
+    d1
+    \grace c16 e1
+    \key d \major
+    f1 \break
+    \clef bass
+    g,1
+    fis1
+  }
 }
 
-\book { 
+\book {
   \score {
     \origScore
     \layout {
-
-      %% each clip-region is a (START . END) pair
-      %% where both are rhythmic-locations.
+      % 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
+      % (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 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 6 0 1))
+      )
     }
   }
 }
@@ -79,7 +81,9 @@ origScore = \score{
   \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)) }
+      \markup {
+        \epsfile #X #30.0 #(format #f "~a-1-from-2.0.1-to-4.0.1-clip.eps"
+                            (ly:parser-output-name parser)) }
     }
   }
 }