From e84501ee741063c442e4dfb67d3d987358b4d98b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 17 May 2014 09:37:35 -0700 Subject: [PATCH] remove monkeypatch --- index.html | 1 - js/pitchdetect.js | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 82b46d4..6a3af3c 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,6 @@ - diff --git a/js/pitchdetect.js b/js/pitchdetect.js index 7660aa1..f41b91b 100644 --- a/js/pitchdetect.js +++ b/js/pitchdetect.js @@ -21,6 +21,9 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ + +window.AudioContext = window.AudioContext || window.webkitAudioContext; + var audioContext = new AudioContext(); var isPlaying = false; var sourceNode = null;