What's new

MIDI RPN in Multiscript

raidmarji

Active Member
Hi All
This line works perfectly at the instrument level to respond to an external midi controller

on rpn
if ($RPN_ADDRESS=2)
$Trans := sh_right(12+sh_right($RPN_VALUE/128-64+-12+abs($RPN_VALUE/128-64--12),1)-abs(12-sh_right($RPN_VALUE/128-64+-12+abs($RPN_VALUE/128-64--12),1)),1)
end if

HOW TO Use it in Multiscript?
 
You cannot use that line of code directly in multiscripts. You will need to save the RPN MSB/LSB and Value Select MSB/LSB in variables then construct RPN address and value from those.
 
Top Bottom