Ircam-RnD / binauralFIR

Binaural module for the Web Audio API
https://ircam-rnd.github.io/binauralFIR/
BSD 3-Clause "New" or "Revised" License
146 stars 16 forks source link

Noticeable clicking when changing position values #10

Closed thely closed 5 years ago

thely commented 5 years ago

This may be obvious, but I've noticed a lot of clicking when altering position values while a single sound is playing, and it seems to be file-dependent. The breakbeat sample on the example page doesn't seem to suffer at all when the azimuth is altered, but other sounds I've tried it with (especially droney, pitched sounds) click a lot when adjusted. I'm hoping to spatialize more than one source on a 2D plane, so I imagine if it's popping with one sound source, it'll be way worse with multiple sources.

Is there something I can do to minimize this? Is there a way to ramp JS values, in case the discretely jumping values are to blame?

PyrApple commented 5 years ago

Increasing the crossfade duration should solve your zipper noise issue. See setCrossfadeDuration() method in the binauralFIR API.