Created
June 11, 2019 06:58
-
-
Save vitaliy-bobrov/510d4a49e48b7734bd3762f24444ce1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Setting target value (1st argument) starting from | |
// the current time in 0.01 second period | |
gainNode.gain.setTargetAtTime(2, context.currentTime, 0.01); | |
// Doing the same but exponentially. | |
gainNode.gain.exponentialRampToValueAtTime(gain, context.currentTime + 0.01); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment