Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const context = new AudioContext();
- const oscNode = context.createOscillator();
- const gainNode = context.createGain();
- oscNode.connect(gainNode);
- gainNode.connect(context.destination);
- oscNode.start();
- oscNode.stop(1);
Add Comment
Please, Sign In to add comment