bool MIDIFileReadMultiTrack::mf_sysex ( MIDIClockTime time, int type, int len, unsigned char *s ) // funcVRM
{
    MIDITimedMessage msg;
    msg.SetSysEx( type ); // set msg status byte (0xF0 or 0xF7)

    int num = len; // number of possible SysExURT header data bytes in msg, 0...5
    if ( num > 5 )
        num = 5;

    // add up to 5 starting bytes for SysExURT functions
    if ( num > 0 )
        msg.SetByte2( s[0] );
    if ( num > 1 )
        msg.SetByte3( s[1] );
    if ( num > 2 )
        msg.SetByte4( s[2] );
    if ( num > 3 )
        msg.SetByte5( s[3] );
    if ( num > 4 )
        msg.SetByte6( s[4] );

    msg.SetTime ( time );
    MIDISystemExclusive sysex( len );

    for ( int i = 0; i < len; ++i )
    {
        sysex.PutSysByte ( s[i] );
    }

   msg.SetDataLength( num );
   return AddEventToMultiTrack ( msg, &sysex, cur_track );
}
 void    MIDIFileReadMultiTrack::mf_sysex ( MIDIClockTime time, const MIDISystemExclusive &ex )
 {
   MIDITimedMessage msg;
   
   msg.SetSysEx();
   msg.SetTime ( time );
   
   MIDISystemExclusive *sysex = new MIDISystemExclusive ( ex );
   
   AddEventToMultiTrack ( msg, sysex, cur_track );
 }