]> git.donarmstrong.com Git - lilypond.git/blob - input/test/beam-auto-override.ly
* scripts/lilypond-book.py (do_file): do not overwrite input file.
[lilypond.git] / input / test / beam-auto-override.ly
1
2 \version "2.1.26"
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         #(override-auto-beam-setting '(end * * * *)  1 2)
29         \time 2/4
30         % one beam per measure
31         c8 c c c
32         c16 c c c c c c c
33         % from here on consider ending beam every 1/4 note
34         #(override-auto-beam-setting '(end * * * *) 1 4)
35
36         c8 c c c
37         % manually override autobeam with weird beaming
38         c8  c[ c] c
39         c8 c c r
40         c8 c c4
41         r8 c c c
42         % no autobeaming
43         \set autoBeaming = ##f
44         c8 c c c
45     }
46     \paper{raggedright = ##t}
47 }
48
49