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: Jean Abou Samra
Subject: Re: Should \partial accept music instead of duration?
Date: Sun, 27 Mar 2022 16:08:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

Le 26/03/2022 à 03:23, Kieren MacMillan a écrit :
Hope that makes it clearer?


Yes, I understand better, thanks. I'd just suggest changing your
snippet to

\version "2.23.7"

$(let ((notes (ly:music-property #{ <e f g a b c' d' e' f' g' a' b' c' d'> #} 'elements)))
    (make-sequential-music
     (map (lambda (x) (ly:music-deep-copy (list-ref notes (random (length notes)))))
          (iota 400))))


with the essential change being the insertion of a
ly:music-deep-copy so it does not share the same music
objects for different notes, which could go wrong with
the application of some music functions.

Cheers,
Jean





reply via email to

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