Question

I looking now at this article and it interested me, but unfortunately the real examples of HTML5 Web Audio Filters are not working. Can anyone please help me to sort it out, what is the problem, because I want to evaluate and work with this example.
Thank you in advance!

Was it helpful?

Solution

Sure, just look in the console and you'll see the errors. Around line 595 of index.html, it's failing because the article is using the old deprecated types for biquadfilter - numeric values - and it needs to be changed to use the new string-based values. (I.e. a value of "3" - the default lowshelf filter - needs to be passed into currentFilterType as "lowshelf".) See http://webaudio.github.io/web-audio-api/#the-biquadfilternode-interface.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top