|
Post by darius on Dec 15, 2019 13:01:58 GMT
Hi Nick, I would like to generate random variations of MIDI parameters in order to humanize backing tracks generated by my arranger keyboard. Here is what I have in mind: * Streambyter receives a MIDI note, swallows it and replaces it by sending a new one * the new note differs from the old one on 1 parameter (velocity, pan, etc) * this parameter is generated randomly, within a range in percent (Range_min%, Range_MAX%)
Example: * a note is received with Velocity = 100 * Range% = [80%-120%] => the new note is generated with a random velocity comprised between 80 and 120
Coud you please help me with the programming structure? Best regards, Darius
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Dec 16, 2019 11:16:14 GMT
Hi darius , Something like this: if MT == 90 calc M2 = $64 + R$63 endWhich will set the velocity of all note on events to a value between 64 and 127. Regards, Nic
|
|
|
Post by darius on Dec 18, 2019 21:57:05 GMT
Thanks Nick for the answer. I started studying your "University" pages, therefore I feel now more confident to modify your suggestion to suit exactly my needs. And Xmax vacation is about to start : I will be able to study further… and practice! Regards, Darius PS: I suggest to add a one-pager in the University that summarizes all commands, variables and important programming rules
|
|