Create a gist now

Instantly share code, notes, and snippets.

Web Audio Example
var context= new (window.AudioContext || window.webkitAudioContext)();
var oscillator = context.createOscillator();
oscillator.frequency.value = 5000;
oscillator.start();
oscillator.connect(context.destination);
// Only be heard by those under 40
// oscillator.frequency.value = 15000;
// Only be heard by those under 18
//oscillator.frequency.value = 17500;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment