Im doing some phasemodulation stuff on my midi modwheel.
this is working, but when i turn the wheel, it cracks.
my idea is, that this is caused by the limitation of midi values (127) which causes a staircase function (step function).
Has anybody an idea how to smooth those values? i tried to fit the attack / decay code from the SamplerVoice Class for this purpose, to smooth the new values with multiplication, but it did not get it working…
By the way, when I turn the mod wheel while no note is being played, the new value is not stored anywhere. is there an easy way to get access to the last modwheelvalue, to write it in the startNote method of the samplerVoice class? (in the startNote method you have only access to currentPitchWheelPosition…)
and an off-topic question, just because im interested: in which frequency the processBlock method in the PluginProcessor is getting called? is numSamples fixed and defined by the host?
thanks a lot for helping me,