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