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