Read in and send Sysex file

maxista's icon

Hello,

anybody have a solution for reading a Sysex file and then sending it to a MIDI port? I know I could use something like Sysex Librarian, however, I would like to do this automatically in Max when the patch is loaded. Would appreciate any help.

Thanks!

xh9o's icon

[sxformat] is for editing/formatting the output, but mind that it uses the decimal system ([midiout] translates everything back to hex) and you should know about the [expr] object as [sxformat] can use its methods to handle variables.

[midiin] takes sysex as any any other incoming midi data but there is also a [sysexin] midi-filter.

maxista's icon

Thanks a lot for the suggestions! I'll give them a try.