Lukas-Fabian Moser <l...@gmx.de> writes:

> Hi Aaron & David,
>> 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.
>>
> Which seems solve the "reading" part of the problem, yes. Thanks much
> (and also to Aaron for pointing out the corresponding bit of C++).
>
> 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?

Why would that be a good idea?

-- 
David Kastrup

Reply via email to