|
From: | Lukas-Fabian Moser |
Subject: | Re: Access "current duration" from music functions |
Date: | Fri, 26 Jun 2020 18:01:56 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
Hi Aaron & David,
Which seems solve the "reading" part of the problem, yes. Thanks much (and also to Aaron for pointing out the corresponding bit of C++).Well, it's more a bug like anything else I guess, but (ly:music-property #{ q #} 'duration) at the current point of time would appear to do the trick.
And basically, your solution seems to be a variant (of course much more elegant!) of my clumsy
get-current-duration = #(define-scheme-function () () (let* ((tempmusic #{ {a} #}) (els (ly:music-property tempmusic 'elements))) (ly:music-property (car els) 'duration)))But it does not seem to be possible to _set_ this "current duration" from scheme, does it?
Lukas
[Prev in Thread] | Current Thread | [Next in Thread] |