lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \sustainOff on \alternative


From: Adam M. Griggs
Subject: Re: \sustainOff on \alternative
Date: Fri, 6 Jan 2023 20:59:22 +0900

Hello, let me quickly ask:

Would that include handling of ties in MIDI output?

On Fri, 6 Jan 2023, 20:24 Lukas-Fabian Moser, <lfm@gmx.de> wrote:

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

[Prev in Thread] Current Thread [Next in Thread]