Whistle detection program with WebAudio API