]> git.donarmstrong.com Git - lilypond.git/blob - input/test/beam-dir-functions.ly
update syntax in .ly files.
[lilypond.git] / input / test / beam-dir-functions.ly
1 \version "1.7.6"
2 \header {
3   texidoc = "
4
5 There are several ways to calculate the direction of a beam.
6 @table @code
7 @item majority
8 number count of up or down notes
9 @item mean
10 mean center distance of all notes
11 @item median
12 mean centre distance weighted per note
13 @end table
14
15 You can spot the differences of these settings from these simple
16 examples:
17
18 These beam direction functions are defined in @file{scm/beam.scm}.  If
19 your favourite algorithm isn't one of these, you can hook up your own.
20 "
21 }
22
23 \paper { linewidth = -1.}
24 \score {
25   \notes\relative c'' {
26     \property Voice.Beam \set #'dir-function = #beam-dir-majority
27     [c8 g]
28     \property Voice.Beam \set #'dir-function = #beam-dir-mean
29     [c g] 
30     \property Voice.Beam \set #'dir-function = #beam-dir-median
31     [c g]
32     
33     \time 3/8
34     \property Voice.Beam \set #'dir-function = #beam-dir-majority
35     [c8 c g]
36     \property Voice.Beam \set #'dir-function = #beam-dir-mean
37     [c c g] 
38     \property Voice.Beam \set #'dir-function = #beam-dir-median
39     [c c g] 
40   }
41 }
42
43 %% Local variables:
44 %% LilyPond-indent-level:2
45 %% End:
46
47
48 %% new-chords-done %%