Skip to content

Instantly share code, notes, and snippets.

@mk30
Created November 16, 2015 02:55
Show Gist options
  • Select an option

  • Save mk30/fbe3d03d264d170a1e8d to your computer and use it in GitHub Desktop.

Select an option

Save mk30/fbe3d03d264d170a1e8d to your computer and use it in GitHub Desktop.
using webaudio to make a webpage make a sound
<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