helpers for WebAudio API