Any suggestions or improvements would be welcome of course.. 😉
Dan 🙂
Shifrin ·
Thanks for this Dan, I've had a look at the FilterExplorer filters before with the view of porting them to SM - you saved me some work and added gain compensation 🙂
Cheers,
Shif.
Nu Audio Science ·
@Dan
How hard was it to port a filter from explorer, I know it puts out C++ syntax but not what it is like ?
I keep looking at explorer every now and again and just cant make my mind up if i will be able to use it 🙁
Shifrin ·
Porting something from Filter Explorer isn't too hard.
Load up one of the example filters, you'll notice some variables t0,t1,.. control values c0,c1,.. and the filter coeffecients a0,a1,a2,.. b1,b2,..
Bascially the control values correspond to filter cutoff, resonance and whatnot. Some temporary variables are then calculated using these control values. And finally the temporary variables are stuck into the filter coefficient calculations 🙂
So if we used 'c0' to be cutoff we could then do (as an example) :-
t0 = c0
t1 = -1.0*(1.0 - c0)
And then for the filter coeffecients :-
a0 = t0
b1 = t1;
This gives a simple low-pass filter.
To translate it into the code component we'd get :-
polyin in;
polyin cutoff;
polyout out;
float t0,t1,a0,a1;
t0 = cutoff;
t1 = -1.0*(1.0 - cutoff)
a0 = t0;
b1 = t1;
out = a0*in - b1*out;
This can be simplified, you don't need to use the t0,t1 they're just extra variables/steps.
Shif.
platinumears ·
Well, I ported this to a Synthedit module originally (which I found quite hard, mainly because my c++ is self-taught and very basic) so I actually ported this version from my c++ source.. the demo version of filter explorer will let you design this type of filter anyway, so there's probably no need to actually buy it till you get past the basics (I bought it so I could run it as a vst, and to show some support)
Dan 🙂
Nu Audio Science ·
Yeah thats the part that interest me, Running as a vst and designing the filters in my host.
Nu Audio Science ·
Cheers Shif 🙂
Tom7777 ·
Any suggestions or improvements would be welcome of course.. 😉
Nice filter 🙂 there seems to be blips of overdrive when moving the knobs fast and when moving the knobs slow the sound seems slightly quantized, i think that the quantized movement could be to do with the Pitch - Frequency module maybe though.
I think the overdrive is because you have made the reso higher than 1 but if you lower it you loose the filters sound so im not sure. But this is when you put the ADSRs gain up to it's max value though anyway.
Shifrin ·
Tom7777 wrote: and when moving the knobs slow the sound seems slightly quantized, i think that the quantized movement could be to do with the Pitch - Frequency module maybe though.
I could be wrong (it's often the case 😉 ) but the stepping you hear form the moving the knobs slow could have something to do with the fact the knob is running linearly from 0..1 where you might want it to run exponentially from 0..1, so you have finer resolution at lower values - just an idea.
Shif.
platinumears ·
Shifrin wrote: I could be wrong (it's often the case 😉 ) but the stepping you hear form the moving the knobs slow could have something to do with the fact the knob is running linearly from 0..1 where you might want it to run exponentially from 0..1, so you have finer resolution at lower values - just an idea.
Shif.
I think the Pitch 2 Frequency module is converting to a log scale..?
Tom777 wrote: Nice filter there seems to be blips of overdrive when moving the knobs fast and when moving the knobs slow the sound seems slightly quantized, i think that the quantized movement could be to do with the Pitch - Frequency module maybe though.
I suspect this may be down to knob resolution: try this one which has a slow envelope sweep.. sounds smooth to me! I haven't tried audio rate modulation yet.. I seem to remember the SE version of the Tarrabia filter became unstable if modulated too fast (so I had to code in 1pole lowpass filters for the modulation inputs) but I was never sure if that was down to the algorithm or just some mistake in my code!
Tom7777 ·
I think the Pitch 2 Frequency module is converting to a log scale..?
yeah i think that the convertion might be something like this.
I suspect this may be down to knob resolution: try this one which has a slow envelope sweep.. sounds smooth to me! I haven't tried audio rate modulation yet.. I seem to remember the SE version of the Tarrabia filter became unstable if modulated too fast (so I had to code in 1pole lowpass filters for the modulation inputs) but I was never sure if that was down to the algorithm or just some mistake in my code!
Thanks platinumears, sounds more smooth now 🙂
Wrote something here? To have a post removed or your name hidden, write to [email protected].