Hi Joel, The OttavaBracket looks like a line-spanner, but it isn’t! It doesn’t even follow the spanner interface (between notes), but the bracket interface (encompass notes).
But why would you in fact want this? As I read this the ottava indication and the indication are mostly independent apart from the loco coming directly after the ottava ends. But as I see this you have [ ..... this part should be played an ottava up ] [ this part should be played loco ] and not [ ... this part should be played an ottava up until the last note, which should be played loco] [ rest ] If for example we were to transpose the part up we would want to extend the ottava indication so it also encompasses some notes marked as loco. If we were to transpose it down we might not use the ottave indication at all (or only for a shorter section), but we would still put the loco in the same place. So why not do it like this: { c'' e'' g'' c''' \ottava #1 e''' g''' c''''2 g'''4 c'''' g'''2 \ottava #0 c'''4^\markup\italic"loco" g'' e'' c'' } Cheers, Valentin Am Freitag, 2. Dezember 2022, 02:27:18 CET schrieb Joel C. Salomon: > Piece of music I have in front of me puts the text "loco." above the > first note after an ottava. See also the attached example, from > <https://dictionary.onmusic.org/terms/17-8va>. > > The code below does not work, which makes me suspect I do not in fact > understand the spanner interface. (I tried to adapt the example from > crescendo spanners.) The less-elegant solution of "just use > `\textMark` on the next note" works fine, but it feels like I'm > missing something obvious. > > --Joel > > \version "2.23.80" > > { > r4 > \override Staff.OttavaBracket.bound-details.right.text = "loco." > \ottava 1 > c''' d''' e''' | > \ottava 0 > r \textMark \markup\italic "kluge" e' d' c' > }
signature.asc
Description: This is a digitally signed message part.