You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2019. It is now read-only.
Figuring out how to properly register and unregister listeners that use the .listen method is unclear to me. If I create a spectrum object for instance:
var saw = T("pink", {mul:0.15}).play();
var fft = T("spectrum", {size:512, interval:100}).on("data", function() {
fft.plot({target:canvas});
}).listen(saw);
Is this removable through calling fft.removeAllListeners(), or saw.removeAllListeners(), or is this completely separate? If so, could somebody add documentation for the listen and unlisten methods (or point me to it if I have missed it).
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Figuring out how to properly register and unregister listeners that use the .listen method is unclear to me. If I create a spectrum object for instance:
Is this removable through calling
fft.removeAllListeners()
, orsaw.removeAllListeners()
, or is this completely separate? If so, could somebody add documentation for the listen and unlisten methods (or point me to it if I have missed it).The text was updated successfully, but these errors were encountered: