]> git.donarmstrong.com Git - lilypond.git/blob - input/test/auto-beam-override.ly
release: 1.3.146
[lilypond.git] / input / test / auto-beam-override.ly
1 \version "1.3.146"
2
3
4
5 %{
6   Currently (1.1.27.jcn3), the auto-beam engraver will only engrave
7   sensible beams, which means that it will end a beam when:
8     * a rest is encountered
9     * another beam (entered manually) is encountered
10     * there's a 'gap' in the beam note's durations
11
12   The beam will be ended also when
13
14     now / beamAutoEnd = 0
15 %}
16         
17 \score{
18     \notes \relative c''{
19         \time 2/4
20         % one beam per measure
21         c8 c c c
22         c16 c c c c c c c
23         % from here on consider ending beam every 1/4 note
24         \property Voice.autoBeamSettings \override #'(end * * * *) = #(make-moment 1 4)
25         c8 c c c
26         % manually override autobeam with weird beaming
27         c8 [c c] c
28         c8 c c r
29         c8 c c4
30         r8 c c c
31         % no autobeaming
32         \property Voice.noAutoBeaming = ##t
33         c8 c c c
34     }
35     \paper{
36         \translator{
37             \VoiceContext
38             % consider ending beam at every 1/2 note
39             autoBeamSettings \override #'(end * * * *) = #(make-moment 1 2)
40         }
41     }
42 }