Hello,
The doc says "Q (resonance) parameter uses range 0..1, but it is translated to range 0.05 to 100 of the classic scientific Q definition.", but it doesn't say anything about scaling.
My question: Is Q the same as frequencies? In other words, is peak(f;ffrom01(20;0.05;100)) a peak filter with a Q of 20?
Thanks
Q in MTurboFilter
-
martin-meldaproduction martin-meldaproduction https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=583716
- KVRist
- 273 posts since 6 Oct, 2022
Hey, to help clarify how the variables map to the filter, the Peak filter expects its parameters in this exact order:
peak(frequency; q; gain; ...)
Here is how to properly understand and use the mapping functions:
1. The Frequency Parameter (ffrom01)
The function ffrom01() is used strictly to translate a 0.0 to 1.0 knob value into a logarithmic frequency range (from 20 Hz to 20,000 Hz). For example, typing ffrom01(0.5) translates to a center frequency of 2517 Hz.
2. The Q (Resonance) Parameter parameter uses a 4th-power scaling curve internally so that the knob feels more "musical" to get some normal values. Because of this curve, setting your raw Q input to 0.68 (68% on the knob) translates to an actual filter Q of roughly 20.
If you want to manually hardcode values, it looks like this:
peak(ffrom01(0.5); 0.68; d*20) (This gives you a 2517 Hz frequency with a Q of ~20).
Alternatively, if you are using the pre-mapped variables tied directly to your UI controllers, you can just type:
peak(f; q; d*20)
f = Automatically reads the current value of your frequency knob.
q = Automatically reads the current value of your Q knob.
d*20 = Takes your "Drive" variable and multiplies it by 20 to drive the gain.
peak(frequency; q; gain; ...)
Here is how to properly understand and use the mapping functions:
1. The Frequency Parameter (ffrom01)
The function ffrom01() is used strictly to translate a 0.0 to 1.0 knob value into a logarithmic frequency range (from 20 Hz to 20,000 Hz). For example, typing ffrom01(0.5) translates to a center frequency of 2517 Hz.
2. The Q (Resonance) Parameter parameter uses a 4th-power scaling curve internally so that the knob feels more "musical" to get some normal values. Because of this curve, setting your raw Q input to 0.68 (68% on the knob) translates to an actual filter Q of roughly 20.
If you want to manually hardcode values, it looks like this:
peak(ffrom01(0.5); 0.68; d*20) (This gives you a 2517 Hz frequency with a Q of ~20).
Alternatively, if you are using the pre-mapped variables tied directly to your UI controllers, you can just type:
peak(f; q; d*20)
f = Automatically reads the current value of your frequency knob.
q = Automatically reads the current value of your Q knob.
d*20 = Takes your "Drive" variable and multiplies it by 20 to drive the gain.
Martin
MeldaProduction
MeldaProduction
