]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/beam-dir-functions.ly
*** empty log message ***
[lilypond.git] / input / test / beam-dir-functions.ly
index 23f3bfa8036be352991d8084d8a11514e219bbd2..db8dd4dce59247fb3bc01af868007d7a7df2aa7f 100644 (file)
@@ -1,42 +1,42 @@
 
-\version "2.1.7"
+\version "2.2.0"
 \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
+    \override Beam  #'dir-function = #beam-dir-majority
       c8[ g]
-    \property Voice.Beam \set #'dir-function = #beam-dir-mean
+    \override Beam  #'dir-function = #beam-dir-mean
       c[ g] 
-    \property Voice.Beam \set #'dir-function = #beam-dir-median
+    \override Beam  #'dir-function = #beam-dir-median
       c[ g]
     
     \time 3/8
-    \property Voice.Beam \set #'dir-function = #beam-dir-majority
+    \override Beam  #'dir-function = #beam-dir-majority
       c8[ c g]
-    \property Voice.Beam \set #'dir-function = #beam-dir-mean
+    \override Beam  #'dir-function = #beam-dir-mean
       c[ c g] 
-    \property Voice.Beam \set #'dir-function = #beam-dir-median
+    \override Beam  #'dir-function = #beam-dir-median
       c[ c g] 
   }
 \paper{raggedright = ##t}