release commit
[lilypond.git] / input / test / beam-control.ly
blob1f31ae3b26c638602f56df2ddcd361f64fdda332
2 \version "2.1.7"
3 \header{
4 texidoc="@cindex Beam Position Control
6 Beam positions may be controlled manually, by setting @code{positions} in the @code{Beam} grob.
8 " }
9 \score {
10 \context Voice \notes\relative c {
11 %% from upper staffline (position 4) to centre (position 0)
12 \property Voice.Beam \override #'positions = #'(2 . 0)
13 c'8[ c]
15 %% from center to one above centre (position 2)
16 \property Voice.Beam \override #'positions = #'(0 . 1)
17 c[ c]
19 %% normal beam-algorithm
20 \property Voice.Beam \revert #'positions
21 \property Voice.Beam \revert #'positions
22 c[ e] e[ c]
24 \paper{raggedright = ##t}