4 texidoc = "Autobeaming will break beams according to beatGrouping
5 if the total length of the beat groups is equal to measureLength.
6 Otherwise, it will break beams according to beatLength."
12 % default beatLength is 1/16; beatGrouping for this time is '()
13 b16 b b b b b b b b b b b % beatlength is used to breatk these beams
14 % use beatGrouping to get 1/8 groups
15 \set Timing.beatGrouping = #'(2 2 2 2 2 2) % 6*2 = 12 so beatGrouping applies
16 b16 b b b b b b b b b b b % beam groups are 1/8
17 % use beatLength to get 1/8 groups -- beatGrouping no longer applies
18 \set Score.beatLength = #(ly:make-moment 2 16 ) % 12*2/16 = 24/16
19 % bad beatGrouping; use
20 % beatLength (1/8 notes)
21 b16 b b b b b b b b b b b
22 % make custom beatGrouping
23 \set Timing.beatGrouping = #'(3 1 2) % 6*2/16 = 12/16
24 b16 b b b b b b b b b b b
26 \set Score.beatLength = #(ly:make-moment 3 16 ) % 6*3/16 = 18/16; use beatLength
27 b16 b b b b b b b b b b b
28 \set Score.beatLength = #(ly:make-moment 4 16 ) % 6*4/16 = 24/16; use beatLength
29 b16 b b b b b b b b b b b