]> git.donarmstrong.com Git - lilypond.git/blob - input/test/beam-auto-override.ly
Massive changes - see ChangeLog.
[lilypond.git] / input / test / beam-auto-override.ly
1 #(ly:set-option 'old-relative)
2 \version "1.9.0"
3 \header {
4
5     texidoc = "@cindex Auto Beaming Override
6
7 This shows how auto-beaming settings can be overridden.
8
9 The auto-beamer will only engrave beams that end when:
10 @itemize @bullet
11 @item  a rest is encountered
12 @item
13  another beam (entered manually) is encountered
14 @item
15  there's a 'gap' in the beam note's durations
16 @end itemize
17
18 The beam will be ended also when now % beamAutoEnd = 0.
19
20 "
21
22 }
23
24 %% TODO: check doc string. -hw
25
26 \score{
27     \notes \relative c''{
28         \time 2/4
29         % one beam per measure
30         c8 c c c
31         c16 c c c c c c c
32         % from here on consider ending beam every 1/4 note
33         #(override-auto-beam-setting '(end * * * *) 1 4)
34
35         c8 c c c
36         % manually override autobeam with weird beaming
37         c8  c-[ c] c
38         c8 c c r
39         c8 c c4
40         r8 c c c
41         % no autobeaming
42         \property Voice.autoBeaming = ##f
43         c8 c c c
44     }
45     \paper{
46         \translator{
47             \VoiceContext
48             autoBeamSettings \override #'(end * * * *) = #(ly:make-moment 1 2)
49         }
50     }
51 \paper{raggedright = ##t}
52 }
53
54