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
26 Fixme: should use an alist
28 autoBeamSettings = (list
29 (cons (list (make-moment MEASURE) TIME-SIGNATURE) (make-moment INTERVAL)
38 time3_2beamAutoEnd = #(make-moment 1 2)
39 %time3_2beamAutoEnd_16 = #(make-moment 1 4)
40 time3_2beamAutoEnd_16 = #(make-moment 1 4)
41 time3_2beamAutoEnd_32 = #(make-moment 1 8)
43 time3_4beamAutoBegin_8 = #(make-moment 1 4)
44 time3_4beamAutoEnd = #(make-moment 3 4)
45 time3_4beamAutoBegin_16 = #(make-moment 1 16)
46 time3_4beamAutoEnd_16 = #(make-moment 1 4)
47 %time3_4beamAutoBegin_32 = #(make-moment 1 8)
48 time3_4beamAutoEnd_32 = #(make-moment 1 8)
50 time3_8beamAutoBegin_16 = #(make-moment 1 8)
51 time3_8beamAutoEnd = #(make-moment 3 8)
54 % end beams each 1/2 note
55 % end beams with 32th notes each 1/8 note
56 % end beams with 1/8 triplets each 1/4 note
58 time4_4beamAutoEnd = #(make-moment 1 2)
59 time4_4beamAutoEnd_12 = #(make-moment 1 4)
60 time4_4beamAutoEnd_16 = #(make-moment 1 4)
61 time4_4beamAutoEnd_32 = #(make-moment 1 8)
63 time2_4beamAutoEnd = #(make-moment 1 4)
64 time2_4beamAutoEnd_12 = #(make-moment 1 4)
65 time2_4beamAutoEnd_16 = #(make-moment 1 4)
66 time2_4beamAutoEnd_32 = #(make-moment 1 8)
69 time4_8beamAutoEnd = #(make-moment 1 4)
70 time4_8beamAutoEnd_16 = #(make-moment 1 4)
71 time4_8beamAutoEnd_32 = #(make-moment 1 8)
73 time4_16beamAutoEnd = #(make-moment 1 8)
75 time6_8beamAutoEnd = #(make-moment 3 8)
76 time6_8beamAutoEnd_16 = #(make-moment 3 8)
77 time6_8beamAutoEnd_32 = #(make-moment 1 8)
79 time9_8beamAutoEnd = #(make-moment 3 8)
80 time9_8beamAutoEnd_16 = #(make-moment 3 8)
81 time9_8beamAutoEnd_32 = #(make-moment 1 8)
83 time12_8beamAutoEnd = #(make-moment 3 8)
84 time12_8beamAutoEnd_16 = #(make-moment 3 8)
85 time12_8beamAutoEnd_32 = #(make-moment 1 8)
91 Users may override in most cases, simply by issuing
93 % from here on consider ending beam every 1/4 note
94 \property Voice.beamAutoEnd = #(make-moment 1 4)
97 \property Voice.beamAuto = ##f
99 or, more globally, by doing:
104 % consider ending beam at every 1/2 note
105 beamAutoEnd = #(make-moment 1 2)
109 see also input/test/auto-beam-override.ly