MoogLadders icon indicating copy to clipboard operation
MoogLadders copied to clipboard

Cutoff Frequency Range

Open martinfinke opened this issue 8 years ago • 3 comments

What's the correct input range for SetCutoff? It seems to be different across the various sub-classes of LadderFilterBase. For example, I tried passing values between 0..20000 to ImprovedMoog::SetCutoff, and it only works for the "middle range", whereas it outputs noise and loud clicks for very high and low frequencies.

What am I supposed to pass to ImprovedMoog::SetCutoff?

martinfinke avatar Dec 15 '15 14:12 martinfinke

They all should be a cutoff frequency in hz. ImprovedMoog has a suspicious-looking filter response in the existing implementation, but it is also matches the algorithm mentioned in the paper. A trivial multiplication by 2 in computing the c value in SetCutoff will correct the low/high clicks and noise, but I still need to look why ImprovedMoog's response graph is so different from the others.

ddiakopoulos avatar Dec 16 '15 17:12 ddiakopoulos

Multiplyingc by 2 in ImprovedMoog::SetCutoff does not solve the problem here..

Passing 0..20000 to RKSimulationMoog::SetCutoff works in the low/middle range, but results in loud noise towards 20000 Hz.

martinfinke avatar Dec 24 '15 10:12 martinfinke

Using a sample rate of 96 kHz fixed this issue for me. That is the sample rate they used for the evaluation in the original research paper too.

iiphii avatar Jan 23 '16 23:01 iiphii