sorry for the delayed reply - i'm a bit behind on the pd-list...
in my plug, i keep a table of gain factors for each fft band. before
each fft, i update the gain factors by multiplying by an attack
multiplier if we are below the threshold or by a release multiplier
if above the threshold. after that, each gain factor is limited, so
it doesn't go past the gate gain setting after attack, or past 1.0
after release.
this recalcing of the gain table only happens once per fft...
the attack multiplier and release multiplier are recalculated based
on both time and the gate gain setting.
On Mar 29, 2007, at 10:56 AM, Kevin McCoy wrote:
Of course, Tom Erbe's soundhack filters already do this, but he hasn't responded to this on how he got attack/release to work for him - it may need to be handled differently in Pd as opposed to whatever he used to code those VSTs.
tom erbe ~ tre@ucsd.edu ~ studio director - computer music ~ ucsd
department of music