wizgrav / clubber

Application of music theory in audio reactive visualizations
http://wizgrav.github.io/clubber
MIT License
360 stars 26 forks source link

Why the need of AudioContext and Analyzer #12

Open nuthinking opened 6 years ago

nuthinking commented 6 years ago

If a Clubber instance can be updated passing the frequencies data, why should we pass in the constructor the AudioContext and Analyzer (they get created automatically otherwise).

nuthinking commented 6 years ago

Seems to work not passing any context and analyzer, but these get created for apparently no reason.

wizgrav commented 6 years ago

Indeed there is no reason to create these if not used, I'm preparing a fix, thanks