1 % auto-beam-settings.ly
2 % setup for auto-beam engraver
4 % specify generic beam end times
8 % [time-signature]'beamAutoEnd'[duration]
12 % time-signature = 'time'[numerator]'_'denominator; eg: 3_4
13 % duration = [numerator]'_'denominator; eg: 3_8, _16
17 % end beams each 1/2 note
18 % end beams with 16th notes each 1/4 note
19 % end beams with 32th notes each 1/8 note
21 time
3_2beamAutoEnd
= #(make-moment
1 2)
22 %time3_2beamAutoEnd_16 = #(make-moment 1 4)
23 time
3_2beamAutoEnd
_16 = #(make-moment
1 4)
24 time
3_2beamAutoEnd
_32 = #(begin
(make-moment
1 8))
26 time
3_4beamAutoBegin
_8 = #(begin
(make-moment
1 4))
27 time
3_4beamAutoEnd
= #(begin
(make-moment
3 4))
28 time
3_4beamAutoBegin
_16 = #(begin
(make-moment
1 16))
29 time
3_4beamAutoEnd
_16 = #(begin
(make-moment
1 4))
30 %time3_4beamAutoBegin_32 = #(begin (make-moment 1 8))
31 time
3_4beamAutoEnd
_32 = #(begin
(make-moment
1 8))
33 time
3_8beamAutoBegin
= #(begin
(make-moment
1 8))
34 time
3_8beamAutoEnd
= #(begin
(make-moment
3 8))
37 % end beams each 1/2 note
38 % end beams with 32th notes each 1/8 note
39 % end beams with 1/8 triplets each 1/4 note
41 time
4_4beamAutoEnd
= #(begin
(make-moment
1 2))
42 time
4_4beamAutoEnd
_12 = #(begin
(make-moment
1 4))
43 time
4_4beamAutoEnd
_16 = #(begin
(make-moment
1 4))
44 time
4_4beamAutoEnd
_32 = #(begin
(make-moment
1 8))
46 time
4_8beamAutoEnd
= #(begin
(make-moment
1 4))
47 time
4_8beamAutoEnd
_16 = #(begin
(make-moment
1 4))
48 time
4_8beamAutoEnd
_32 = #(begin
(make-moment
1 8))
50 time
4_16beamAutoEnd
= #(begin
(make-moment
1 8))
52 time
6_8beamAutoEnd
= #(begin
(make-moment
3 8))
53 time
6_8beamAutoEnd
_16 = #(begin
(make-moment
3 8))
54 time
6_8beamAutoEnd
_32 = #(begin
(make-moment
1 8))
56 time
9_8beamAutoEnd
= #(begin
(make-moment
3 8))
57 time
9_8beamAutoEnd
_16 = #(begin
(make-moment
3 8))
58 time
9_8beamAutoEnd
_32 = #(begin
(make-moment
1 8))
60 time
12_8beamAutoEnd
= #(begin
(make-moment
3 8))
61 time
12_8beamAutoEnd
_16 = #(begin
(make-moment
3 8))
62 time
12_8beamAutoEnd
_32 = #(begin
(make-moment
1 8))
68 Users may override in most cases, simply by issuing
70 % from here on consider ending beam every 1/4 note
71 \property Voice.beamAutoEnd = #(make-moment 1 4)
74 \property Voice.beamAuto = ##f
76 or, more globally, by doing:
81 % consider ending beam at every 1/2 note
82 beamAutoEnd = #(make-moment 1 2)
86 see also input/test/auto-beam-override.ly