how to create sysex message using Hex values?

Michael Dessen's icon

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

pdelges's icon

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 0x50 0x16 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.

Max Patch
Copy patch and select New From Clipboard in Max.

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

Michael Dessen's icon

Thank you Patrick! Perfect.