Next: , Previous: Instrument transpositions, Up: Preparing parts


8.2.7 Ottava brackets

`Ottava' brackets introduce an extra transposition of an octave for the staff. They are created by invoking the function set-octavation

     
     \relative c''' {
       a2 b
       #(set-octavation 1)
       a b
       #(set-octavation 0)
       a b
     }

[image of music]

The set-octavation function also takes -1 (for 8va bassa) and 2 (for 15ma) as arguments. Internally the function sets the properties ottavation (e.g., to "8va") and centralCPosition. For overriding the text of the bracket, set ottavation after invoking set-octavation, i.e.,

     
     {
       #(set-octavation 1)
       \set Staff.ottavation = #"8"
       c'''
     }

[image of music]

See also

Program reference: OttavaBracket.

Examples: input/regression/ottava.ly, input/regression/ottava-broken.ly.

Bugs

set-octavation will get confused when clef changes happen during an octavation bracket.

This page is for LilyPond-2.8.8 (stable-branch).

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.

Other languages: English.
Using automatic language selection.