When a note has an octava mark, the end of the mark is at the end of the note. For long notes the visual effect is not satisfying. I would like to end the octava mark at the end of the measure.
This example shows what I mean:
\score {
\new PianoStaff
<<
\new Staff {
\relative c'' {
\clef treble \time 3/4
a4 b c | d8 c b4 a | g2.
}
}
\new Staff {
\relative c {
\clef bass \time 3/4
a2.
\ottava #2
\set Staff.ottavation = #"15"
b''2.
\ottava #0
c,,2.
}
}
>>
}
In order to accomplish that result, I added an extra voice with hidden notes, rendering the wanted result. The hidden voice forces the end of the octava mark to the end of the third note. My question is: is there a better/simpler way to obtain the same result?
This is the version with the 'hidden voice'
\score {
\new PianoStaff
<<
\new Staff {
\relative c'' {
\clef treble \time 3/4
a4 b c | d8 c b4 a | g2.
}
}
\new Staff {
\relative c {
\clef bass \time 3/4
a2.
\ottava #2
\set Staff.ottavation = #"15"
<<
\new Voice { \voiceOne b''2. }
\new Voice { \voiceTwo \hideNotes a4 b c \unHideNotes }
>>
\ottava #0
c,,2.
}
}
>>
}