This topic covers an experimental ADSR patch uploaded to patchstorage, giving a few details and describing its current limitations.
Intro
There have been a few requests for native ADSR pipe or similar (mostly recently here and here, I think).
Users like @ahnatek have also wondered about a workaround in the meantime.
This patch is my first attempt to get Midihub to produce an ADSR CC envelope like this:
or this:
UPDATE: skip to here to see details on updated version
(overlapping notes issues described below solved)
It ain’t perfect
There are current limitations, however, which stop it being widely useful in its current form.
These include...
An envelope must ‘complete’ before the next one starts:
Ideally, a new note would behave like this…
…where a new envelope would “cut off” any currently running one.
This is what happens instead:
!
It’s (obviously?) monophonic!
As it outputs one set CC, even if the above issue were solved the envelope would apply to both notes, so amp & filter envelopes wouldn’t behave as we might expect in a polyphonic setting.
LFO output limits resolution
The max LFO resolution is 128Hz. This means that, once a “ramp” is less than a sec, the LFO will have fewer steps and become more “bitty”.
It also means finding the best “threshold” to transition from Attack → Decay is a bit approximate
If you think this limited solution might be for you, read on!