Next: Different editions from one source, Previous: Instrument transpositions, Up: Preparing parts
`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"
c'''
}
Program reference: OttavaBracket.
Examples: input/regression/ottava.ly, input/regression/ottava-broken.ly.
set-octavation will get confused when clef changes happen
during an octavation bracket.
This page is for LilyPond-2.8.8 (stable-branch).