Next: , Previous: Automatic beams, Up: Beaming



5.5.2 Manual beams

In some cases it may be necessary to override the automatic beaming algorithm. For example, the autobeamer will not put beams over rests or bar lines. Such beams are specified manually by marking the begin and end point with [ and ]

     {
       r4 r8[ g' a r8] r8 g[ | a] r8
     }

[image of music]

Normally, beaming patterns within a beam are determined automatically. If necessary, the properties stemLeftBeamCount and stemRightBeamCount can be used to override the defaults. If either property is set, its value will be used only once, and then it is erased

     {
        f8[ r16
           f g a]
        f8[ r16
        \set stemLeftBeamCount = #1
           f g a]
     }

[image of music]

The property subdivideBeams can be set in order to subdivide all 16th or shorter beams at beat positions, as defined by the beatLength property.

     c16[ c c c c c c c]
     \set subdivideBeams = ##t
     c16[ c c c c c c c]
     \set Score.beatLength = #(ly:make-moment 1 8)
     c16[ c c c c c c c]

[image of music]

Normally, line breaks are forbidden when beams cross bar lines. This behavior can be changed by setting allowBeamBreak.

See also

User manual: Changing context properties on the fly for the \set command

Bugs

Kneed beams are inserted automatically, when a large gap is detected between the note heads. This behavior can be tuned through the object.

Automatically kneed cross-staff beams cannot be used together with hidden staves. See Hiding staves.

Beams do not avoid collisions with symbols around the notes, such as texts and accidentals.

Read comments on this page, or add one.

This page is for LilyPond-2.5.11 (development-branch).

Report errors to <bug-lilypond@gnu.org>.

Other languages: English.
Using automatic language selection.