+
+\version "2.10.0"
+\header{
+ texidoc="@cindex Beam Position Control
+
+Beam positions may be controlled manually, by overriding the @code{positions} setting of the @code{Beam} grob.
+
+" }
\score {
- \context Voice \notes\relative c {
- % beam-control.fly
-
- % from upper staffline (position 4) to centre (position 0)
- \property Voice.beamVerticalPosition = #4
- \property Voice.beamHeight = #-4
- [c'8 c]
-
- % from center to one above centre (position 2)
- \property Voice.beamVerticalPosition = #0
- \property Voice.beamHeight = #2
- [c c]
-
- % normal beam-algorithm
- \property Voice.beamHeight = ##f
- \property Voice.beamVerticalPosition = ##f
- [c e] [e c]
+ \context Voice \relative c {
+ %% from upper staffline (position 4) to centre (position 0)
+ \override Beam #'positions = #'(2 . 0)
+ c'8[ c]
+ %% from center to one above centre (position 2)
+ \override Beam #'positions = #'(0 . 1)
+ c[ c]
}
- \paper { }
- \midi { }
+\layout{ragged-right = ##t}
}
+