Hey all,

I encountered a situation where the PianoPedalBracket setting to-barline doesn't always do what you'd expect. Given the following code, the pedal bracket is not extended to the end of the bar:

%%%

\version "2.24.0"
\score {
  \new Staff {
    \clef bass
    \time 6/8
    \relative c' {
      c8 b a g e c |
      \set Staff.pedalSustainStyle = #'mixed
      \override Staff.PianoPedalBracket.to-barline = ##t
      \repeat tremolo 12 { b,32\sustainOn b' } |
      \repeat tremolo 12 { b,32 b'\sustainOff  } |
      c8 e f g a
    }
  }
}

%%%

Only when the \sustainOff is placed outside of the tremolo, the bracket extends to the barline:

%%%

\version "2.24.0"
\score {
  \new Staff {
    \clef bass
    \time 6/8
    \relative c' {
      c8 b a g e c |
      \set Staff.pedalSustainStyle = #'mixed
      \override Staff.PianoPedalBracket.to-barline = ##t
      \repeat tremolo 12 { b,32\sustainOn b' } |
      \repeat tremolo 12 { b,32 b' }  \sustainOff |
      c8 e f g a
    }
  }
}

%%%

However, this leads to Lilypond complaining about an unattached SustainEvent. Is this a bug?

cheers

Maurits



Reply via email to