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