Forums > MaxMSP

how to create sysex message using Hex values?

February 7, 2012 | 4:43 am

I’m trying to create a midi file with sysex messages in order to program a foot pedal controller from Midi Solutions. I’m having trouble because their instructions for creating the file are in Hex, and I can’t figure out how to use the sxformat object to create the proper message. In Hex values, the message I need to send is:

F0 00 00 50 16 00 00 00 00 00 00 F7

(The manual for the pedal unit I’m trying to program is here:

http://www.midisolutions.com/ped.pdf)

If anyone could help me figure out how to create a midi file in max that contains this information, or correct me if I’m approaching this wrong, I’d be very grateful. Thanks in advance!

Michael Dessen


February 7, 2012 | 8:32 am

Too bad it’s not one of their footswitch pedals:
http://cycling74.com/project/midi-solutions-f8-and-dual-footswitch-controller-programming-tool :-)

Numbers are numbers, even if they are represented as hex. Max has an interesting and rather unknown feature: if you type in an hex number, starting with the string ’0x’, it will automagically replace it with its decimal representation.

So, type 0xf0 0 0 0×50 0×16 0 0 0 0 0 0 0xf7 in a message box, and you’ll get the values in dec. Connect this to a midiout, et voila.

Note that you can also set the display format of an int to hex, so it’s easy to built a converter:

– Pasted Max Patch, click to expand. –

February 7, 2012 | 8:57 pm

Thank you Patrick! Perfect.


Viewing 3 posts - 1 through 3 (of 3 total)