Need tips and tricks for my sysex editor
Hi,
i just discover reaper and i would like to build sysex editor for my harware synth.
I already made stand alone application with max msp but it's better for the workflow if i can build it inside reaper.
I already start with this for my mks 7 :
desc: MKS 7 Bass
slider1:0<0,127,1{Pulse, Saw}>DCO Wave
slider2:64<0,127,1>PWM
slider3:64<0,127,1>cuttoff
@slider
slid1 = floor(slider1)*16;
slid2 = floor(slider2);
slid3 = floor(slider3);
@block
(slid1 != oldslider1) ?
(
msgbuf[0] = $x41;
msgbuf[1] = $x32;
msgbuf[2] = $x01;
msgbuf[3] = $x10;
msgbuf[4] = slid1;
midisend_buf(0,msgbuf,5);
oldslider1 = slid1;
);
(slid2 != oldslider2) ?
(
msgbuf[0] = $x41;
msgbuf[1] = $x32;
msgbuf[2] = $x01;
msgbuf[3] = $x03;
msgbuf[4] = slid2;
midisend_buf(0,msgbuf,5);
oldslider2 = slid2;
);
(slid3 != oldslider3) ?
(
msgbuf[0] = $x41;
msgbuf[1] = $x32;
msgbuf[2] = $x01;
msgbuf[3] = $x05;
msgbuf[4] = slid3;
midisend_buf(0,msgbuf,5);
oldslider3 = slid3;
);
First i would like to know if it's write in a good way. this is the first time i code something...
And for the tips and tricks :
i need for my crumar bit 01 to find a way to send the sysex only when the fader is released. Can you provide me a good way to do this.
And for me siel dk 700 i need to send the sysex every 25 ms. the cpu of this synth is really bad, to much midi information and he stop working.
Also i cannot send multiple sysex in the same time.
Can i write something like this :
desc: DK 700
slider1:64<0,127,1>reso
slider2:64<0,127,1>PWM
slider3:64<0,127,1>cuttoff
@slider
slid1 = floor(slider1);
slid2 = floor(slider2);
slid3 = floor(slider3);
@block
(allslid != alloldslider) ?
(
msgbuf[0] = $x41;
msgbuf[1] = $x32;
msgbuf[2] = $x01;
msgbuf[3] = $x10;
msgbuf[4] = slid1 or slid2 or slid3 parameter;
msgbuf[5] = slid1 or slid2 or slid3 value;
midisend_buf(0,msgbuf,6);
alloldslider = allslid;
);
I hope i'm clear and thanks in advance for your help.
Reaper should make advertisement about the sysex editing capability, i find this feature by accident. and a lot of people need such thing in a simple way.
|