On Mon, 18 Dec 2000 15:45:47 -0500, Rob Leslie wrote:
Btw Rob, how's that code ? Workable ?
(Tony sent me some code that implements a compressor.) Yes, it's enough to understand how to do it; thanks.
I wonder though if it wouldn't be better to implement this in a special DSP plug-in rather than further complicate the input plug-in...
When would Winamp ever support 24 bit output of an input plugin? Trouble is, you'll degrade the output if the plugin is used on 16 bit output up front. Use it on 24 bit output however, and then dither that and you'll keep your high resolution that was the point of MAD in the first place. The limiter(that's what it'll be used for realy) is supposed to work on your signal with that 3 bit headroom. That'll give you serious advantages. The limiter can cut off larger but short peaks, but soft limit slightly longer clipping stuff, if so desired. That's why I proposed the -0.5 dB base attenuation, since the soft limiter works not like the hard one, punching down the signal effectivly at the threshold, but pushes it down with a logarythmic scale. You won't get that kind of control and resolution with a Winamp DSP, because it doesn't support 24-bit signals from the input plugin.
That compressor code btw is used in one of the best VST compressors out there. You should check out what it does to material. Nice plugin.
Tony