Skip to content

Instantly share code, notes, and snippets.

@aGHz
Created July 17, 2013 20:32
Show Gist options
  • Select an option

  • Save aGHz/6024190 to your computer and use it in GitHub Desktop.

Select an option

Save aGHz/6024190 to your computer and use it in GitHub Desktop.
Dat frequency
A = new webkitAudioContext();
vol = A.createGainNode(); vol.gain.value = 0.3; vol.connect(A.destination);
osc1 = A.createOscillator(); osc1.frequency.value = 40; osc1.noteOn(0); osc1.connect(vol);
osc2 = A.createOscillator(); osc2.frequency.value = 75; osc2.noteOn(0); osc2.connect(vol);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment