Just a quick question as to whether anyone has experienced any issues with using LocalBuf along with DelTapRd & DelTapWr?
I’m experiencing periodic clicking that appears to be related to the the local buffer length. I haven’t done much testing, so I’m not clear if using a LocalBuf is the problem, or something else. My tap times are well within range, and not at the buffer boundaries, so that’s not the problem.
At some point soon I’ll put together a simple reproducer to illustrate. (Could be I’m doing something silly…)
Thanks for any thoughts!
I can confirm that there seems to be a bug with linear interpolation in this case.
(
a = {
var sig = SinOsc.ar(440);
var buf = LocalBuf(SampleRate.ir, 1).clear;
var phase = DelTapWr.ar(buf, sig);
var delay = DelTapRd.ar(buf, phase, 0.25, interp: 2);
(delay * 0.1).dup
}.play;
)
a.free;
This clicks once per second.
interp: 1 and interp: 4 do not click – only interp: 2 does.
(FWIW I haven’t used linear interpolation in a delay line in forever – CPUs are fast enough that I just go directly to cubic.)
Anyway I think it’s fair to log this as a bug, with this minimal example.
hjh
Thanks @jamshark70 for the quick confirmation.
I believe I was seeing similar issues with other interp options, as well. In any case, I’ll look to putting together a range of reproducers before filing.
Thanks!!
Hm, I realized that my test is for an integer number of samples, which could affect the results. Maybe a delay time of 0.250115 or something might produce clicks for non-interpolated and cubically interpolated delay.
hjh
I’ve just filed an issue, with another reproducer which can return fractional delays.
The clicks happen with passed buffers, too, so it looks like the problem is DelTapRd with linear interpolation.
It might be worth a checking whether BufRd has a similar issue…