Hi Mats,

Yet another alternative is to use

\after 1*22 \tempo 2=40 \after 1*40 \tempo 4=120  \music

however, I don't know of an easy way to specify "after 1*40 + 2.*12", for example, except doing the math and specifying
\after 4*196 ...

\after expects a duration, and IIUC we only have convenient arithmetic for lengths, unfortunately. But one could do:

\version "2.26"

dur =
#(define-scheme-function (mus) (ly:music?)
   (make-duration-of-length (ly:music-length mus)))

{
  \after \dur { 2. 16 } <>->
  \*16 c16
}

Lukas


Reply via email to