Sysex for an Roland MKS 50 , help .
Hi, it's kind of a newbie stuff,
I looked different topics here, but i am confused.
In order to build a random midi sequencer to control all the parameters of my Roland Mks 50 , I would like just to understand how properly send a sysex message to the midi out of max. I would be very happy if someone could build me a little fonctional minimal patch , starting from a simple 0 - 127 slider ( the value of the paramater ) - to sysex - to midi out.
( let's say for example to control the VCF : F0 41 36 00 23 20 01 11 00 F7
I found the info here :
http://www.vintagesynth.com/roland/sysex.php )
Thanks a lot.
You have to convert all hex numbers to integers, and send that via midiout.
For the simple example as above which has a single value change 0 -127,
just make a message containing all numbers and $1 in place of the parameter value.
So in the VCF case :
240 65 54 0 35 32 1 17 $1 247
and connect slider 0 -127 to the message, and message to midiout.
"Official " way is to use sxformat object, do all the same as above, just
replace $1 with / is $i1 /.
The only difference at the end is that sxformat iters ( outputs integers one by one)
and message sends the whole list at once.
Midiout object handles both well , at least for me.
So, this got me thinking. Since most of the sysex charts for MIDI instruments are written as strings of hexadecimal pairs, how can I convert that string to a string of decimal values. I'm sure there is a better way to do it, but here's my stab at it.
Here is a bit more efficient conversion Hex to Decimal ...
Thanks, SA! I'd say that's a bit more than a bit more efficient! This grasshopper still has much to learn about [sprintf]. I had no idea it could directly do the hex to decimal conversion. Thank you for posting that!
You are welcome.
sprintf is one of the very powerfull and at the same time not really
documented objects for us Max users. One has to know the syntax and formulas,
and that bit which is part of help files and reference covers just bare minimum
of what it can do.
Yeah, I've used it a lot for formatting text strings, but not for something like this. Back to the woodshed I go! Thanks, again!
Sorry to anwser so late, I didn't have the gear..
Your answer is really clear and your patch works perfectly ! Thanks a lot.
I made this controller for the MKS 50, you could dissect it. Or you could sequence the device's parameters with Live pretty easily.