phenomnomnominal / tuner.coffee

A guitar tuner using getUserMedia + Web Audio API
32 stars 4 forks source link

Is it possible to add a method to safely stop the tuner? #1

Closed revdan closed 10 years ago

revdan commented 10 years ago

Context: I'm using the tuner (which is awesome, by the way) in a modal window. So if I open the modal, it all works great. However if I close the modal, the html gets removed but the javascript is still trying to execute every x milliseconds causing an infinity of errors.

I'd like to be able to call a reset or destroy method so that I could safely stop execution and then start a new instance again if the modal is reopened.

Thanks for your time, Dan