#### 3.3.4 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
>          }

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"

##### 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.

Read comments on this page, or add one. This page is for LilyPond-2.2.2 (stable-branch).