|
Post by willehallem on Aug 10, 2020 15:43:27 GMT
Hello all, I am trying to use my MPE Controller (Sensel Morph with Custom Layout) with my iPad, but to get the pitch bends to work right I'd need a script to scale the bends down to 75%. I am successfully using this approach in Logic Pro with help of a script provided by user dewdman42 in post #8 in this thread: www.logicprohelp.com/forum/viewtopic.php?f=45&t=143782&sid=aaa51afa89679bb09f0e96f57b9e0a55Does anything similar exist for Streambyter or Midifire? If not, I'd be willing to pay some money to whoever can cook something similar up for me. Or maybe someone can point me in the right direction to attempt this myself. Thanks for any and all help! Will
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Aug 10, 2020 16:21:47 GMT
Hi willehallem , I'm pretty sure I have done something like this before, but don't seem to be able to find it. Using this post as a starting point, you probably want something like: # scale pitchbendif load # Q0 could be a slider in the AU # but for here, we'll make it a constant # scale percentage assign Q0 = $75 end
# detect pitchbend if MT == E0 # convert 14 bit to signed P0 calc P0 = M2 * 80 calc P0 = P0 + M1 calc P0 = P0 - $8192 # scale the pitchbend calc P0 = P0 * Q0 calc P0 = P0 / $100 # convert signed P0 to 14 bit calc P0 = P0 + $8192 calc M2 = P0 / 80 calc M1 = P0 & 7FendI just typed this in - I haven't tested anything.
This won't handle scaling over 100% like the java code does, but maybe enough to get you going.
Regards, Nic
|
|
|
Post by willehallem on Aug 10, 2020 17:49:57 GMT
Hi Nic,
damn, that was seriously fast. I tried it out just now and got it running in audiobus and it works PERFECT! Thanks so much, you saved me a ton of time and headaches, really appreciate it!
Cheers from Germany
Will
|
|