lilypond-user
[Top][All Lists]
Advanced

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

Re: \sustainOff on \alternative


From: cc0_knight
Subject: Re: \sustainOff on \alternative
Date: Fri, 6 Jan 2023 13:45:42 +0100 (CET)



--
已通过Tutanota 安全发送,立即注册您的加密无广告邮箱!
https://tutanota.com


2023年1月6日 19:23 来自 lfm@gmx.de:

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

Hi, I am using 2.22.2,
\after 4 \sustainOff b2 r
is useless, because of unknown escaped string


reply via email to

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