]> 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 a6c1835f2a88a9e1fae4bff5f37beee4ce097cb2..072ac9367906cf86dde5225922c621f260fa07e8 100644 (file)
@@ -1,43 +1,45 @@
-\version "1.7.6"
+
+\version "2.1.28"
 \header {
-  texidoc = "
+  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 { linewidth = -1.}
+\paper { raggedright = ##t}
 \score {
-  \notes\relative c'' {
-    \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]
+  \notes\relative c'' {\time 3/4
+    \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}
 }
 
 %% Local variables:
@@ -45,4 +47,4 @@ your favourite algorithm isn't one of these, you can hook up your own.
 %% End:
 
 
-%% new-chords-done %%
+