lilypond-user
[Top][All Lists]
Advanced

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

Re: Access "current duration" from music functions


From: David Kastrup
Subject: Re: Access "current duration" from music functions
Date: Fri, 26 Jun 2020 17:05:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Aaron Hill <lilypond@hillvisions.com> writes:

> On 2020-06-26 6:13 am, Lukas-Fabian Moser wrote:
>> Is it possible to access this "current duration" from a music or
>> scheme function?
>
> Looks to be stored in Lily_parser::default_duration_ which, while
> public in the C++ interface, does not appear to be exposed to Scheme
> as far as I can tell.

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.

-- 
David Kastrup



reply via email to

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