Created
September 21, 2014 04:59
-
-
Save bradparker/1c5a06dfe12bd2a4f726 to your computer and use it in GitHub Desktop.
Tuning Fork
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var context = new AudioContext(), | |
gainNode = context.createGain(), | |
oscillator = context.createOscillator(); | |
gainNode.connect(context.destination); | |
oscillator.frequency.value = 440; | |
oscillator.connect(gainNode); | |
oscillator.start(); | |
// .. | |
// gainNode.gain.value = 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment