You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Scripting: Don't limit precision of values from GetInfo: #4220
Currently, numeric values from GetInfo are rounded to a maximum of 4 decimal places.
While it may be convenient to limit the number of digits when displaying values from "Extra menu > Scriptables II > GetInfo", this (arbitrary) limitation prevents sample accurate editing via (mod-script-pipe) scripting or Nyquist.
This proposal is to return higher precision values when returned from Python / Nyquist scripting commands. Ideally double-precision floating-point format, or at least 32-bit float. (Nyquist uses 32-bit float, while Python's built-in float type has double precision).
Problem to be solved
Pasting audio clips based on GetInfo clip positions may cause the destination to overlap another clip due to rounding.
The first / last samples of a clip may be missed when applying an effect.
Label placements may be off by a few samples if based on GetInfo data.
Activity
bwagner commentedon Aug 22, 2024
I came here from the Audacity Forum.
The limited precision for timing information from GetInfo makes it unsuitable for tasks that require sample accuracy.
This limitation to facilitate display of the values mixes information and its representation resulting in an unnecessary kludge.
I'd like to upvote this request.
Also, if anyone knows of a workaround, I'd love to hear about it.