Created
October 2, 2013 02:32
-
-
Save evilnapsis/6788323 to your computer and use it in GitHub Desktop.
Hacer un sonido con #javascript
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 webkitAudioContext(); | |
var sinewave = context.createOscillator(); | |
sinewave.connect(context.destination); | |
sinewave.noteOn(0); // wait a moment before the next line | |
sinewave.noteOff(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment