I know the new WebAudio support is capable of this, but I can't seem to figure out how to implement it. I want to be able to specify a ramp-down on the gain over a period of time. I actually have the low level calls, from the MIDI.js code, but I can't figure out how to get the C2 implementation to do the same thing.
From MIDI.js
source.gain.linearRampToValueAtTime(1, delay);
source.gain.linearRampToValueAtTime(0, delay + 0.2);