Adding an ottava marking to a single voice: Difference between revisions
Appearance
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
m New category |
||
| (One intermediate revision by the same user not shown) | |||
| Line 32: | Line 32: | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||
Latest revision as of 23:15, 21 November 2025
If you have more than one voice on the staff, setting octavation in one voice transposes the position of notes in all voices for the duration of the ottava bracket. If the octavation is only intended to apply to one voice, the Ottava_spanner_engraver should be moved to Voice context.
\version "2.24"
\layout {
\context {
\Staff
\remove Ottava_spanner_engraver
}
\context {
\Voice
\consists Ottava_spanner_engraver
}
}
{
\clef bass
<< { <g d'>1~ q2 <c' e'> }
\\
{
r2.
\ottava -1
<b,,, b,,>4 ~ |
q2
\ottava 0
<c e>2
}
>>
}