Quote:
Originally Posted by LOSER
Yep, replace this...
Code:
spl0 = (tmpl = a0*spl0 - b1*tmpl + cDenorm);
spl1 = (tmpr = a0*spl1 - b1*tmpr + cDenorm);
...with your own low-pass code. So spl0 and spl1 hold a lowpassed signal.
Anyway what I want to say is, it isn't as easy as changing that one line you marked, that's only the cut off frequency, but the steepness of a 1st order RC filter will always be 6db/oct. So change you need to change the filter entirely.
|
Thanks for the reply man.
The "first order RC filter" makes sense to me (sort of
) but it seems I can't do better than that. Here's what I've managed to do so far. Basically its not a much better filter than the one you've originally implemented with the "StereoEnhancer". I've tried to add some other algorithms but I really get kinda lost in all the math so I've copied the filters/lowpass formula and adapted it for the stereo enhancer. But this way - while making the slope more steeper its also adding resonance at the selected frequency.
[IMG]http://img369.**************/img369/2418/lpdc0.jpg[/IMG]
I'm looking for a 24db LP filter formula with adjustable slope and not much resonance.
Took a look at sstillwell HP/LP (based on RBJ Filter Cookbook) but the filters were still 6db imho.
Will continue to try to match Nugen's Monofilter
If someone has a filter algorithm ready for JS (b2b knowledge) please post some advices in here.
Cheers
Liteon