< Back to IRCAM Forum

Spat Binaural/Panner with Variable Window/Blocksize?

Bonjour a tout and thank you for the great tools!
I’m trying to optimize my patch to allow the panner in binaural mode to load HRTF’s with variable HRIR length. I am finding that longer HRIR lengths cause considerable CPU overloading, and was wondering if there is a way to set the window or block size for the binaural rendering? I noticed in spat5.conv~ for example, there is a blocksize parameter which can be optimized for the best CPU efficiency/delay tradeoff for your application, but I am looking for an HRTF application similar to this.
Merci beaucoup!
Marielle

Hi Marielle, and welcome to this discussion group,

No, there is unfortunately no such option in the binaural engine.
(and to be honest, there is no plan to add that in a near future)

However, in order to reduce the CPU load, I would recommend to use HRTF modeled as IIR filters (a.k.a. Second Order Sections (SOS) a.k.a. cascades of biquad filters). There is a large collection of such SOS-HRTF files accessible via the spat5.sofa.loader interface.

Regards,
T.

Thank you for the quick response T, much appreciated.
If I continue with the HRIR route, is there a default size that I should be targeting for best performance? Thanks, Marielle

No, there is no “default size” that I can recommend for best performance.
The shortest the fastest, of course; and power of 2 are always appreciated.
Besides that, I havent benchmarked the processor.

T.