]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/beam-dir-functions.ly
* input/mutopia/W.A.Mozart/mozart-hrn-3.ly: Mozart died in 1791
[lilypond.git] / input / test / beam-dir-functions.ly
index eae7884258e85463b55f3ce9204ba98c49d23fd6..a0f6dff769c0079a430ce081101c979efb857ac6 100644 (file)
@@ -1,43 +1,43 @@
-#(ly:set-option 'old-relative)
-\version "1.9.0"
+
+\version "2.1.30"
 \header {
   texidoc = "@cindex Beam Dir Functions
 
-There are several ways to calculate the direction of a beam:
+The direction of a beam may be calculated in several ways. As shown in
+the example, the beam are be below the notes if:
 @table @code
 @item majority
-number count of up or down notes
+of (individual) notes would have down stems,
 @item mean
-mean center distance of all notes
+of note pitches is on the center line or below it, or
 @item median
-mean centre distance weighted per note
+of note pithes (i.e. the centermost element of ordered pitches) is 
+on the center line or below it.
 @end table
 
-You can spot the differences of these settings from these simple
-examples:
-
-These beam direction functions are defined in @file{scm/beam.scm}.  If
-your favourite algorithm isn't one of these, you can hook up your own.
+If your favourite algorithm is not one of these, you can hook up your 
+own one. 
+(These beam direction functions are defined in @file{scm/beam.scm}.)  
 "
 }
 
 \paper { raggedright = ##t}
 \score {
   \notes\relative c'' {\time 3/4
-    \property Voice.Beam \set #'dir-function = #beam-dir-majority
-      c8-[ g]
-    \property Voice.Beam \set #'dir-function = #beam-dir-mean
-      c-[ g] 
-    \property Voice.Beam \set #'dir-function = #beam-dir-median
-      c-[ g]
+    \override Beam  #'dir-function = #beam-dir-majority
+      c8[ g]
+    \override Beam  #'dir-function = #beam-dir-mean
+      c[ g] 
+    \override Beam  #'dir-function = #beam-dir-median
+      c[ g]
     
     \time 3/8
-    \property Voice.Beam \set #'dir-function = #beam-dir-majority
-      c8-[ c g]
-    \property Voice.Beam \set #'dir-function = #beam-dir-mean
-      c-[ c g] 
-    \property Voice.Beam \set #'dir-function = #beam-dir-median
-      c-[ c g] 
+    \override Beam  #'dir-function = #beam-dir-majority
+      c8[ c g]
+    \override Beam  #'dir-function = #beam-dir-mean
+      c[ c g] 
+    \override Beam  #'dir-function = #beam-dir-median
+      c[ c g] 
   }
 \paper{raggedright = ##t}
 }