Demo: https://jsfiddle.net/byrsgkv7/3/ (https://jsfiddle.net/byrsgkv7/3/) It uses a naive 4th order filter, but any other lowpass filter will work too.
Actually I like it more than K-S:
- Pitch depends only on buffer length. No need to account for filter delay, like in K-S.
- If you want to start at the 2 second mark, or run the decay backwards, you can. Unlike K-S where you must start at the beginning and move only forward.
Is this idea known? I've tried to find it online but couldn't. Any obvious next steps?