The tonewheel organ model on the Korg Kronos has the option to change the Leslie speed by flicking the pitchbend lever. I’ve got quite used to this as it is a little similar to using a half-moon switch. To that end, I have created a scriplet that will switch Leslie speed, assuming the Leslie sim can switch its rotor speed in response to CC01 Modulation messages.
The scriplet has one parameter: Pitchbend Threshold. If you imagine the pitch bend wheel transmits +1 to +8192 for upward pitch bends and -1 to -8192 for downward pitch bends, then only once the pitchbend value exceeds the threshold in either direction does it send the command to change the Leslie speed.
I hope this is of use to some of you. It makes more sense if you have a Roland style pitchbend lever or a Korg style joystick, not so much if you have a pair of pitchbend and modulation control wheels. Just wire it between your MIDI In block(s) and the target instrument plugin.
Here is a demonstration gigfile using the HaNonB70 B3 plugin:
PitchbendToLeslieSpeed.gig (27.9 KB)
…and here is the code:
Var
paramBendThreshold("Pitchbend Threshold %") : parameter 0 .. 100 = 30
Initialization
SetDisplayMessage("created by Dave Boulden, BOULDEN.digital")
SetInfoMessage("Pitchbend to Leslie Speed converter. When pitchbend raises above the selected threshold percentage a maximum CC01 Modulation value is sent. When pitchbend dips below the threshold percentage in the negative direction a miniumum CC01 Modulation value is sent.")
End
On PitchBendEvent(m : PitchBendMessage)
var thisPBval : integer
var actThreshold : integer
var ccm : ControlChangeMessage
thisPBval = GetPitchBendValue(m) - 8192
actThreshold = (8192 * paramBendThreshold) / 100
If thisPBval > actThreshold Then
ccm = MakeControlChangeMessage(1, 127)
End
If thisPBval < (0 - actThreshold) Then
ccm = MakeControlChangeMessage(1, 0)
End
SendNow(ccm)
End