Added envelope modifiers: ACE-like strategy and threshold.
Doesn't seem to crash, but no thorough verification was done yet.
Might be possible to code in a more efficient way.