Alternatively, if we can’t or don’t want to use MIDI CC but modulate a VST parameter like channel pan directly, we can use ModScripter with this script:
// Script by Johnny Moneto
getDescription = function () {
return "NoteOn to Random Value";
}
randomValue = 0;
//-----------------------------------------------------------
processModulation = function (inputValue, numSamples) {
return randomValue;
}
onNoteOnEvent = function (channel, pitch, velocity, tuning, noteID) {
randomValue = Math.random();
}
The connection can be set up like this:
You’d need to use a MIDI Track, that is routed to the ModScripter to send the NoteOn signal (MIDI side chaining).