Problem to make a perfect "DJ" style filter

all's icon

Hello,

What I call a "DJ" style filter : 2 filters in series : LP -> HP using only 1 cutoff control.
About the cutoff control :
- From 8:00 to 12:00, I control the cutoff of the LP filter
- From 12:00 to 4:00, I control the cutoff of the HP filter

The way from LP to HP (and from HP to LP) have to be perfectly smooth.

I would like to have the possibility to initialize my controls, Cutoff in particular.


With my current patch, I have 2 problems :
- If I initialize my cutoff control where this one is in the HP field, I have a boost in the final level (I don't have this problem if I initialize my cutoff control when this one is in the LP fied).
- If I move my cutoff control from HP to LP, I have a boost in the final level at 12:00 (I don't have this problem if I move it from LP to HP at 12:00).


I add my patch with comments for a perfect understanding.

Thank you for your help !

Best,
Alex

mlr_filter_gain_mono_03.maxpat
Max Patch


Source Audio's icon

Your init value for Q is 2.
How should that be linear ?
insert filtergraph~ and watch what happens if Q is set higher than 0.707




all's icon

Hello
Thank you for helping me.
Unfortunately, setting the Q at 0.707 doesn't remove this problem.
I don't see anything wrong in the Spectroscope object.

Source Audio's icon

You need to smooth init to ramp from current to init value. not jump.
Both filters behave the same, but jumping from hipass filter to "neutral" (no way with that filter)
causes more thump at output.

all's icon

I did it but it doesn't work (with different ramp time).

Source Audio's icon

I don't know what you tried..
Something like this ?

that filter is anyway not really usefull in my ears

all's icon

Something like that effectively...
This cutoff control si very handy during live performance !

Source Audio's icon

If it serves you well, than all ok.
But HiPass set at anything higher than 10 KHz is close to mute.
Maybe that's why you name it DJ style filter.

all's icon

For sure.

Thank you

sousastep's icon

I needed this sort of thing as well, and found this thread while searching, so I made my own version of this with Surreal Machine's filters

One_Knob_LP_HP_Filter.zip
application/zip 59.35 KB