Closed yanqui-uxo closed 1 month ago
Like I said here, I don't think this should be done automatically.
I'd prefer &ae
/un &ae
to take/return a sample rate.
You could then take the ratio of that sample rate to &asr
, and use keep
to resample.
This would also allow the user to encode audio at different sample rates.
My concern is that resampling with keep
is non-trivial if the new sample rate is not an integer multiple of the old one, unless there's an elegant method I'm missing. Would you be willing to have a dedicated audio resampling function?
Some new keep
functionality allows non-integer scalar counts, for scaling arrays.
Example pad
I see! Alright, I'll work on your suggestion. Thanks!
If you do, I think the argument order for &ae
should be Format SampleRate SampleData
See #526