Last active
November 6, 2017 21:00
-
-
Save beefchimi/eb9c68d489a071730ef36e894e375c9c to your computer and use it in GitHub Desktop.
Reverse conditional for setGain method
This file contains hidden or 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
_setGain(reverse, duration) { | |
this.gainNode.gain.setValueAtTime(1, this.context.currentTime); | |
if (reverse) { | |
this.gainNode.gain.exponentialRampToValueAtTime(0.5, this.context.currentTime + duration); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment