how to have reson~ go past 22khz

Joseph Nagy's icon

Not sure how to explain this problem in the title alone. When the reson~ frequency goes past 22khz it "swings" back and forth as the frequency goes up and the gain gets amplified each time it does this. The reason why this is an issue for me is because I want to put an LFO on the bandpass with a varying frequency center and depth which usually has it go outside of 22khz and cause this problem.

Is there a way to have this rubber band not happen? I've tried if then checks to check the current frequency range and shut the reson~ off when outside the range but this causes audio pops. I've been going insane for two weeks now trying to figure out how to solve this. Thanks in advance for any input.

Here is an example of the problem I tried to describe.

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

Roman Thilenius's icon

you could upsample you patch, but it should also be okay to just cut the value off, or dou you hear the current barrier?

Joseph Nagy's icon

I don't know how to upsample a patch, I'll look into that. Cutting the value off, or even smoothing it out to zero as it approaches the 22khz limit doesn't stop the popping that occurs when using a saw wave as an LFO.

Roman Thilenius's icon

[poly~ mypatch 1 up 4] will give you 176 khz when the outside world has 44.
inside poly you must use its special inlets (see helpfile)

Joseph Nagy's icon

Thanks for the replies guys. So clip~ seems to fix the bounds issue much better than the if check I was using before. But I still have inconsistencies occurring with a saw LFO here. The audio will clip and pop randomly when moving from 1 back to 0. How do you fix this?

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