See the Pen The Web Audio API Tone Generator by Jack Rugile (@jackrugile) on CodePen.