Created
March 13, 2017 01:58
-
-
Save kubosho/6328af3e4b276076978df72bbf74e2c8 to your computer and use it in GitHub Desktop.
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(); | |
var sound = context.createOscillator(); | |
var gain = context.createGain(); | |
sound.frequency.value = 528; | |
gain.gain.value = 0.25; | |
sound.connect(gain); | |
gain.connect(context.destination); | |
sound.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment