A demo I'm wrting to help me better understand the effects of audio compressor controls. (I wanted something that would respond instantly to changes, without having to wait to view/hear the effects via the usual modify-play-record-listen/view loop.)
Note: Works best on Chrome and Safari browsers. (Firefox is slow. I don't care enough to fight with it.)
...This "input envelope" then gets sent to the "gain stage"...
...which (instantly) modifies the the envelope (all lag occurred earlier in envelope detection in the sidechain) and then generates the output waveform: