6 There are several ways to calculate the direction of a beam
10 number count of up or down notes
12 mean centre distance of all notes
14 mean centre distance weighted per note
17 These beam direction functions are defined in @file{scm/beam.scm}. If
18 your favourite algorithm isn't one of these, you can hook up your own.
20 Of course, this depends on the neutral-direction for the middle line,
21 down by default. We set that to 1 (up) in the lower staff." }
25 \context Staff \notes \relative c'' {
26 \property Voice.Beam \set #'dir-function = #beam-dir-majority
28 \property Voice.Beam \set #'dir-function = #beam-dir-mean
30 \property Voice.Beam \set #'dir-function = #beam-dir-median
34 \property Voice.Beam \set #'dir-function = #beam-dir-majority
36 \property Voice.Beam \set #'dir-function = #beam-dir-mean
38 \property Voice.Beam \set #'dir-function = #beam-dir-median
41 \context Staff=lower \notes \relative c'' {
42 \property Voice.Beam \set #'neutral-direction = #1
43 \property Voice.Beam \set #'dir-function = #beam-dir-majority
45 \property Voice.Beam \set #'dir-function = #beam-dir-mean
47 \property Voice.Beam \set #'dir-function = #beam-dir-median
50 \property Voice.Beam \set #'dir-function = #beam-dir-majority
53 \property Voice.Beam \set #'dir-function = #beam-dir-mean
55 \property Voice.Beam \set #'dir-function = #beam-dir-median
63 %% LilyPond-indent-level:2