RealVision home
   
  DxMidi - Sysex support  
Summary
Implementation
Availability
Sign In/Out
Setting buffers
Sending events
Receiving events
OMS support
Sysex support
Result codes
DxMidi provides Sysex support for librarian applications that you can write. These methods let the DxMidi plug-in drives the sysex you expects and don’t care of any other data. You can also decide of the minimum size of the sysex (to prevent from short initiating messages) and specify a manufacturer. With this last function, you can take care of only a specific kind of sysex.



err = me.StartSysEx ( manufacturer, minsize )
err as Boolean

First, use this method to start the Sysex mode (while you are in this mode, the driver don’t receive other datas than Sysex..., you can also receive Sysex in the other mode but lang datas are not managed with the same easiness.
Set the manufacturer to filter other sysex messages. Minsize prevents smaller sysex to be filtered.


result = me.IsSysEx ()
result as Boolean

Call this in a timer control to test if the user has sent a sysex (or after a request).
If result = true, then call the ReadSysEx() method to get it.


sysex = me.ReadSysEx ()
sysex as String

If the sysex is here, (after your call to IsSysEx()), call this to get the string of the new sysex.



err = me.StopSysEx ()
err as Boolean

This stops the SysEx filtering function and returns to standard mode (not filtered). You must call this after the getting events procedure to let your apps take control of other datas.