Audio Filter

I need a low pass filter effect in a project. This parameter should be controlled via a slider as with the mixing pull.
How do I get this functionality implemented in Needle? That’s how I thought of it in C#.

Original Post on Discord

by user 684154017479524352

Hi, you can add filters to the threejs Audio object via the AudioSource component.

You add a new typescript component that has a reference to the AudioSource component.
You can then get the threejs Audio object via audioSource.Sound and call audioSource.Sound.setFilter()

Here’s a list of web audio filters: BiquadFilterNode - Web APIs | MDN

Thanks for the information Marcel.

by user 684154017479524352