Brackets for optional material

Optional additional material can be enclosed in brackets that pass through the staff.

{
  \startOptionalMaterial
  c'1
  \stopOptionalMaterial
}
[image of music]

The note positions that the bracket encompasses can be overridden. The endpoints of the interval are measured in staff spaces from the center of the staff to the center of the note.

{
  \tweak OptionalMaterialBracket.positions #'(-4 . 1)
  \startOptionalMaterial
  c'1
  \once \override Staff.OptionalMaterialBracket.positions =
  #'(-2 . 4)
  \stopOptionalMaterial
}
[image of music]

Predefined commands

\startOptionalMaterial, \stopOptionalMaterial.

See also

Snippets: Editorial annotations.

Internals Reference: Optional_material_bracket_engraver, OptionalMaterialBracket, optional-material-bracket-interface.

LilyPond Notation Reference v2.25.25 (development-branch).