]> git.donarmstrong.com Git - lilypond.git/blob - input/test/beam-dir-functions.ly
*** empty log message ***
[lilypond.git] / input / test / beam-dir-functions.ly
1
2 \version "2.1.28"
3 \header {
4   texidoc = "@cindex Beam Dir Functions
5
6 The direction of a beam may be calculated in several ways. As shown in
7 the example, the beam are be below the notes if:
8 @table @code
9 @item majority
10 of (individual) notes would have down stems,
11 @item mean
12 of note pitches is on the center line or below it, or
13 @item median
14 of note pithes (i.e. the centermost element of ordered pitches) is 
15 on the center line or below it.
16 @end table
17
18 If your favourite algorithm is not one of these, you can hook up your 
19 own one. 
20 (These beam direction functions are defined in @file{scm/beam.scm}.)  
21 "
22 }
23
24 \paper { raggedright = ##t}
25 \score {
26   \notes\relative c'' {\time 3/4
27     \override Beam  #'dir-function = #beam-dir-majority
28       c8[ g]
29     \override Beam  #'dir-function = #beam-dir-mean
30       c[ g] 
31     \override Beam  #'dir-function = #beam-dir-median
32       c[ g]
33     
34     \time 3/8
35     \override Beam  #'dir-function = #beam-dir-majority
36       c8[ c g]
37     \override Beam  #'dir-function = #beam-dir-mean
38       c[ c g] 
39     \override Beam  #'dir-function = #beam-dir-median
40       c[ c g] 
41   }
42 \paper{raggedright = ##t}
43 }
44
45 %% Local variables:
46 %% LilyPond-indent-level:2
47 %% End:
48
49
50