Filter Modulation problem

Steven's icon

Hi, I have been working on a modulation section for my synthesizer and managed to set up an LFO and direct it to several places using a matrix~. One of which is the filter cut-off, which sounds really good but I am also having a major problem with it. Basically when I modulate the filter cut-off using an LFO and set the cut-off to very high values, the peaks of the LFO waveshape cause the filter to distort.
The LFO seems to be sending the filter cut-off too high and causing it to distort. I have found that reducing the maximum value of the cut off control to about 10KHz is low enough to prevent it but then this limits the effect of my filter, which I don't want. I thought about using a clip~ to stop the LFO sending the filter frequency to high but it doesn't work. I'm using a filtercoeff~ and biquad for the filter with the LFO directed straight into the cutoff inlet.
Any help is much appreciated.
Steven

Roald Baudoux's icon
Steven's icon

Hi Rould,
Here is a modified version of my patch that shows how I've built my LFO and connected it to the filter cutoff via matrix~. It seems to work fine until I push the cutoff slider above 120 then it distorts like in the motion of the LFO.
Thanks for looking at this,
Steven

Max Patch
Copy patch and select New From Clipboard in Max.

Bertrand Fraysse's icon

I tried it and the problem is that when the cutoff slider is above 120, you send frequencies above 22050 Hz to [freqcoeff~] and [biquad~] can't handle it.
Put a [clip~ 20 22050] just before [freqcoeff~]... there's nicer ways to correct the problem but it works like that.

Steven's icon

Hello Roald,
thanks for working on that patch, it seems to be working fine now. The patch has a few faults on it, i know like the two connection you mentioned going into the filter cutoff and the whole LFO section in general could be designed better. I'll get there eventaully
cheers,
Steven