I have the following markup which gives the output below:
\version "2.22.2"
\language "english"
global = {
\key df \major
\numericTimeSignature
\time 2/4
}
right = \fixed c'' {
\global
<af, c ef af>8. <bf, c ef af>16~ 16 <c ef> bf, <af, c ef af>~ |
8. <bf, c ef af>16~ 16 <c ef> bf, <c ef> |
}
left = \fixed c {
\global
\clef bass
<ef, ef>16 <gf, gf> <af c' gf'>8 <gf, gf> <af c' gf'> |
<f, f> <af c' gf'> <ef, ef>16 <df, df> <c, c>8 |
}
pedal = {
\set Dynamics.pedalSustainStyle = #'bracket
8\sustainOn 4\sustainOff 16 16\sustainOn | 16 16\sustainOff 8 8\sustainOn 8\sustainOff |
}
\score {
\new PianoStaff <<
\new Staff = "right" \right
\new Staff = "left" \left
\new Dynamics \pedal
>>
}
I'd like to add a number to the left of each sustain bracket to indicate a variation on the 2nd time the passage is palyed:
The closest I got is by using 8^"1."\sustainOn
or 8_"1."\sustainOn
, however this places the number above/below the bracket rather than directly before it.