fbpx
Skip to main content

MIDI Forum

Encapsulate a SysEx...
 
Notifications
Clear all

Encapsulate a SysEx message into a midi file

10 Posts
2 Users
0 Reactions
18.6 K Views
Marco
Posts: 7
Active Member
Topic starter
 

Hi everybody!
I would like to use Mainstage to send a SysEx message to my Motif Rack XS module to pass from Voice Mode to Multi Mode and viceversa.
The two messages are the following
F0 43 10 7F 03 0A 00 01 00 F7 Voice
F0 43 10 7F 03 0A 00 01 05 F7 Multi
but I don't know how to encapsulate them into a midi file.
Sorry for the stupid question, I really searched on the web.
Thank you very much!

 
Posted : 30/10/2018 8:17 am
Geoff
Posts: 1041
Noble Member
 

Hello,

Well, I did a little Google search, and found the following link:

https://www.logicprohelp.com/forum/viewtopic.php?t=47923

Does this help?

Is seems that someone else has had exactly the same problem, and basically MainStage does NOT allow this, but this link shows a 'workaround'. Doesn't mean a lot to me, as I'm not familiar with any of the software involved, but it appears to be appropriate.

If it was me, I'd just create a midi file manually. Standard header, one track, containing ONLY the SYSEX data. Mainstage might not 'manipulate/store normal SYSEX, but I assume that it will play a midi file containing SYSEX?

Geoff

 
Posted : 30/10/2018 9:46 am
Marco
Posts: 7
Active Member
Topic starter
 

Thank you, Geoff.
I've tried before my request with the file I'm attaching in this answer.
Maybe it lacks of the standard header and other MIDI informations?
Thank you again!
Marco

 
Posted : 30/10/2018 9:54 am
Geoff
Posts: 1041
Noble Member
 

Well, your midi file is somewhat awry!

The file does not include the required header chunk.

The file does not show the required 'punctuation' for the actual track.

The SYSEX data is presented as an ASCII representation of the SYSEX data rather than the literal binary data required.

I attach a more appropriate version, which for a first attempt may not be 100%, but it should be a valid version at least. If you have a prog that displays a binary file (DUMP or something similar) you should see what I'm referring to.

Any further info, please ask.

Geoff

 
Posted : 30/10/2018 10:37 am
Marco
Posts: 7
Active Member
Topic starter
 

Thank you very much!
It works perfectly!

Marco

 
Posted : 30/10/2018 10:57 am
Geoff
Posts: 1041
Noble Member
 

Marco,

I don't know if you have a hex editor (a prog that accesses the file on a byte by byte basis) but if you can do so, you could edit the file I've done to change the single byte just prior to the F7 and change the present 05 to 00.

Geoff

 
Posted : 30/10/2018 11:59 am
Marco
Posts: 7
Active Member
Topic starter
 

I changed the file and now I can use two midi files to jump from Voice mode to Multi mode.
I have to ask you one more thing... 🙁
Could be possible to add into the file also a bank select + program change commands?

I've tried to add, after the F7 closing of SysEx message this piece of hex
b000 3f (Bank select MSB 63)
b020 00 (Bank select LSB 0)
c058 (Program change 88, the patch is the 89 but it starts from 0)

Of course, it doesn't work...
I attach the file.
Thank you for your kind support
Marco

 
Posted : 01/11/2018 3:12 am
Geoff
Posts: 1041
Noble Member
 

Hello Marco,

Your change to the midi file was pretty close, but...

Note that each midi element must be preceeded by one or more timing bytes, and you had not done this. So any attempt to implement the instructions would have tried to interpret data bytes as timing info, and gone awry!

I'll rejig things to add in timing data as 00 (zero), as in everything happens immed at the start of the file.

Your .zip file included the .MID file, also a sub-directory (__MACOSX) and what may be another copy - but larger ?? - of the same file). I'll just work on the initial midi file.

There was another problem with the end-of-file, but I don't think that would have affected anything.

Changed file to follow.

Geoff

 
Posted : 01/11/2018 7:18 am
Marco
Posts: 7
Active Member
Topic starter
 

I'm afraid you forgot the file in the last answer...
Thanks again!
Marco

 
Posted : 01/11/2018 8:43 am
Geoff
Posts: 1041
Noble Member
 

Marco,

No I didn't 😉

At that time, it wasn't finished/checked.

Now it is, so this time it IS attached.

I hope it does the job?

Geoff

 
Posted : 01/11/2018 9:07 am
Share: