Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const duration = 0.2;
- const volume = {
- min: 0.001,
- max: 1,
- };
- gainNode.gain.setValueAtTime(
- volume.min,
- context.currentTime
- );
- gainNode.gain.exponentialRampToValueAtTime(
- volume.max,
- context.currentTime + duration
- );
- oscNode.start();
Add Comment
Please, Sign In to add comment