Created
November 16, 2015 02:55
-
-
Save mk30/fbe3d03d264d170a1e8d to your computer and use it in GitHub Desktop.
using webaudio to make a webpage make a sound
This file contains hidden or 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
| <script type="text/javascript"> | |
| var context = new AudioContext(), | |
| oscillator = context.createOscillator(); | |
| oscillator.connect(context.destination); | |
| oscillator.start(context.currentTime); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment