Guest User

Untitled

a guest
Oct 21st, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. const context = new AudioContext();
  2. const oscNode = context.createOscillator();
  3. const gainNode = context.createGain();
  4.  
  5. oscNode.connect(gainNode);
  6. gainNode.connect(context.destination);
  7.  
  8. oscNode.start();
  9. oscNode.stop(1);
Add Comment
Please, Sign In to add comment