Skip to content

Instantly share code, notes, and snippets.

@mohayonao
Created February 28, 2016 22:21
Show Gist options
  • Select an option

  • Save mohayonao/1175fb7c600aacb2d9e0 to your computer and use it in GitHub Desktop.

Select an option

Save mohayonao/1175fb7c600aacb2d9e0 to your computer and use it in GitHub Desktop.
let param = new AudioParam2(1);
let gain = audioContext.createGain();
let t0 = audioContext.currentTime;
param.bind(gain.gain);
param.setValueAtTime(0, t0);
param.linearRampToValueAtTime(1, t0 + 1);
param.getValueAtTime(t0 + 0.5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment