how to create sysex message using Hex values?
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:
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!
Too bad it’s not one of their footswitch pedals:
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:
----------begin_max5_patcher---------- 421.3ocyT0saBCBE951mBBW2Y.Zs0t61ywxhgZQGlVnAnN2L9tOg1tUccZcw rXHAx4G37c93bN678fYxsLMD7H3Yfm2NeOOmJqBuVYOXIc6hBp14FTvdSlsF FzXxv1ZbpKjz7RlVCHSC6LJpKk0lBlwcSbq1FUl2qXMgEBAuzZphZV7JWrZt hsvzXMJLdBJ.fiw1iYSs6DzDzW2gm6h+AL8.F0E4kRgQPKcQ.9jhSK5gIt3T HYcWy+v4NlLAY0t222tELVZotLioFNyI+VlyEFX..lQEqFCIPRP1ionyQBoW lCpnpC5ML0blflU37.cGvOKkpRp4r0JWKigGAikbexX1tI5J1O5zHQHfcMCA HD.p2hDkbKa8vIo83Pbbh6X1vjX3U15QtgkVCOQpjmyOjvCyHnKm1MMaQomc hysefiKLvBt3zwxNnZ0eLUnk0pEc+mcSAAei1bl1vETCWJ54TxQ97JOOmI5y K4bssN2koC+mLV3jLBzj9uglvQfF7eDMM+bzppMLkt8Ic.4P45ZoxJFG3D4h FQ2KBUrM7N+C8su1d+OA9P3uL. -----------end_max5_patcher-----------
Thank you Patrick! Perfect.