lilypond-user
[Top][All Lists]
Advanced

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

Re: Should \partial accept music instead of duration?


From: Carl Sorensen
Subject: Re: Should \partial accept music instead of duration?
Date: Thu, 24 Mar 2022 22:37:21 -0600



On Thu, Mar 24, 2022 at 3:18 PM Valentin Petzel <valentin@petzel.at> wrote:
Hello Carl,

I don’t think recreating \partial is the best thing to do. After all we can
simply do

pickupNotes =
#(define-music-function (mus) (ly:music?)
   (let* ((mom (ly:music-length mus))
          (dur (make-duration-of-length mom)))
     #{
       \partial #dur
       #mus
     #}))

Cheers,
Valentin

Yes, way better!  Thanks!

This can be a snippet in the docs, as far as I'm concerned.

Carl
 


reply via email to

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