Multipad-how to define each pad as a value in a script ??
Posted: 20 Apr 2016 19:43
Hi Guys,
I would like to use the pads in a multipad object to output an array of NRPN messages to Cubase for key commands.Each pad needs to have a unique value for the "nrpn_lsb_param" as listed below in my script.I am not sure how to convert the value of each pad into a value I can enter into the script.I know this should be easy,but I'm stumped.i have seen the singular multipad example,but can't make headway with it-i fear the scripting is beyond me.Any help appreciated.
here's my NRPN script so far---
decl target=0; // MIDI Target
decl chan = 16; // MIDI Chan
decl nrpn_msb = 99, nrpn_lsb = 98; // NRPN MSB - LSB universal values
decl data_msb = 6, data_lsb = 38; // DATA MSB - LSB universal values
decl nrpn_msb_param = 0; // msb range 0 to 127 defines the parameter MSB
decl nrpn_lsb_param = 0; // lsb range 0 to 127 defines the parameter LSB
decl value; // value of msg sent out,in this case it only needs to be a trigger
value= 127 ; // data nrpn course value
decl null=0; // data nrpn fine value not used left at zero
ctlout(target,nrpn_msb,nrpn_msb_param,chan);
ctlout(target,nrpn_lsb,nrpn_lsb_param,chan);
ctlout(target,data_msb,value,chan);
ctlout(target,data_lsb,null,chan);
I would like to use the pads in a multipad object to output an array of NRPN messages to Cubase for key commands.Each pad needs to have a unique value for the "nrpn_lsb_param" as listed below in my script.I am not sure how to convert the value of each pad into a value I can enter into the script.I know this should be easy,but I'm stumped.i have seen the singular multipad example,but can't make headway with it-i fear the scripting is beyond me.Any help appreciated.
here's my NRPN script so far---
decl target=0; // MIDI Target
decl chan = 16; // MIDI Chan
decl nrpn_msb = 99, nrpn_lsb = 98; // NRPN MSB - LSB universal values
decl data_msb = 6, data_lsb = 38; // DATA MSB - LSB universal values
decl nrpn_msb_param = 0; // msb range 0 to 127 defines the parameter MSB
decl nrpn_lsb_param = 0; // lsb range 0 to 127 defines the parameter LSB
decl value; // value of msg sent out,in this case it only needs to be a trigger
value= 127 ; // data nrpn course value
decl null=0; // data nrpn fine value not used left at zero
ctlout(target,nrpn_msb,nrpn_msb_param,chan);
ctlout(target,nrpn_lsb,nrpn_lsb_param,chan);
ctlout(target,data_msb,value,chan);
ctlout(target,data_lsb,null,chan);