Re: problem with \after on last note of DS al fine

Michael Werner <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <CAOi1ec_fxRvYda4r6-HUkcXyYkDHF+KXZLA_U+GOaPTf77rmgw@mail.gmail.com>
Hi Kris,

On Thu, Jan 18, 2024 at 4:53 AM Kris Van Bruwaene via bug-lilypond <
[email protected]> wrote:

> I want to put a decrescendo on the last note of a DS al Fine section, but
> it generates an error message (version 2.24.3)
> Example:% lily test \after with DSaF
> \version "2.24.3"
> music = \relative c' {
> c1
> \repeat segno 2
> {
> c1
> \volta 2 \fine
> c1\> \after 1 \!
> }
> }
>


According to
https://lilypond.org/doc/v2.25/Documentation/notation/available-music-functions
the \after function is used as follows:
\after [music] - delta (duration) ev (music) mus (music)

Add music ev (usually a post-event) with a delay of delta after the onset
of mus.
All that needs done is flip the order of the statements.

\version "2.24.3"

music = \relative c' {
  c1
  \repeat segno 2
  {
    c1
    \volta 2 \fine
    \after 1 \! c1\>
  }
}

Might seem a bit counter-intuitive to put the \after function before the
note. Just bear in mind that \after is a function that takes the note as
one of its arguments, and it should make more sense.
-- 
Michael
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.