Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidSabine/fb02b994bc63a2e7f7d7 to your computer and use it in GitHub Desktop.
Save DavidSabine/fb02b994bc63a2e7f7d7 to your computer and use it in GitHub Desktop.
A Pen by David Sabine.
<html><head><title>Simple Sound With Web Audio API</title></head><body>
<h1>Hello world!</h1><p>If your web browser supports Web Audio API and if your speakers are turned up, you should be hearing a beautiful sine wave at 440 hertz. You can tune the "A" string of your guitar to this tone.</p>
</body></html>
var c = new AudioContext();var o = c.createOscillator();o.connect(c.destination);o.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment