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