Hi,

Am 06.01.23 um 07:54 schrieb cc0_knight--- via LilyPond user discussion:
Hi Everyone, Sorry for my english.
Skip the first pedal stop(Because it's off-topic), when I write like this:

\repeat volta 2 {
  <statement..> \sustainOn
}
\alternative {
  { <statement..> \sustainOff }
  { <statement..> \sustainOff }
}

(Please always give short and compilable code examples!)

Perhaps something like:

\version "2.24.0"

{
  \repeat volta 2 \relative {
    r4 e'\sustainOn d c
  }
  \alternative {
    {
      \after 4 \sustainOff b2 r
    }
    {
      \once\omit Staff.SustainPedal
      <>\sustainOn
      \after 4 \sustainOff b2 r
    }
  }
}

Of course, in a perfect world, spanners like the sustain pedal would be "reset" to their pre-alternative state at the start of each alternative. IIRC the world of LilyPond's alternatives handling has gotten much closer to perfection thanks to Dan's work over the last few months, but this does not seem to have been part of it.

Lukas

Reply via email to