]> git.donarmstrong.com Git - lilypond.git/blob - input/features/beam-dir-function.ly
d445468a090351cbd958767ef258b666bf78a892
[lilypond.git] / input / features / beam-dir-function.ly
1 \header{
2 texidoc="
3 There are several ways to calculate the direction of a beam
4
5 @table @samp
6 @item majority
7 number count of up or down notes
8 @item mean
9 mean centre distance of all notes
10 @item median
11 mean centre distance weighted per note
12 @end table
13
14 We should see:
15
16   up down down
17
18   up up down
19 ";
20 }
21
22 \score {
23   \notes \relative c'' {
24     % the default
25     %\property Voice.Beam \set #'dir-function = #beam-dir-majority
26     [d8 a]
27     \property Voice.Beam \set #'dir-function = #beam-dir-mean
28     [d a] 
29     \property Voice.Beam \set #'dir-function = #beam-dir-median
30     [d a]
31     
32     \property Voice.Beam \set #'dir-function = #beam-dir-majority
33     \time 3/8;
34     [d8 a a]
35     \property Voice.Beam \set #'dir-function = #beam-dir-mean
36     [d a a] 
37     \property Voice.Beam \set #'dir-function = #beam-dir-median
38     [d a a] 
39   }
40 }