This script identifies the base position and Note modulation amount for a frequency knob to match the Note source in Xfer Records's Serum VST, allowing for creative use of tonal filters.
The default values for freq_max
and freq_mid
correspond to the Filter cutoff (the one in the OSC tab, not the FX module). They can be changed to find the values for other frequency knobs in Serum by identifying their maximum frequency (just crank the knob all the way up) and the exact midpoint frequency (assign the MIDI input value to 0.5 in your host, then click without dragging the knob). The script needs the midpoint frequency instead of the minimum frequency because the minimum (e.g. 8 Hz) isn't precise enough for this task.
Assign the two printed values to the frequency knob and the Note modulation amount for that knob, respectively, in your host application, then tweak the tuning frequency to account for imprecision in the base frequency. (You don't have to use your ears - play an A4, then