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