コード例 #1
0
bool MIDIFileReadMultiTrack::mf_eot ( MIDIClockTime time ) // VRM
{
    MIDITimedMessage msg;
    msg.SetStatus ( META_EVENT );
    msg.SetMetaType ( META_END_OF_TRACK ); // VRM
    msg.SetTime ( time );
    msg.SetDataLength( 0 ); // VRM
    return AddEventToMultiTrack ( msg, 0, cur_track ); // VRM
}
コード例 #2
0
 void    MIDIFileReadMultiTrack::mf_eot ( MIDIClockTime time )
 {
   MIDITimedMessage msg;
   
   msg.SetStatus ( META_EVENT );
   msg.SetMetaType ( META_END_OF_TRACK );
   msg.SetTime ( time );
   
   AddEventToMultiTrack ( msg, 0, cur_track );
 }
コード例 #3
0
bool MIDIFileReadMultiTrack::mf_text ( MIDIClockTime time, int type, int len, unsigned char *s ) // VRM
{
    MIDITimedMessage msg;
    msg.SetStatus ( META_EVENT );
    msg.SetMetaType ( ( uchar ) type ); // remember - MF_META_* id codes match META_* codes
    msg.SetTime ( time );

    MIDISystemExclusive sysex( len ); // VRM

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

    msg.SetDataLength( 0 ); // VRM // variable data length don't saved to data_length
    return AddEventToMultiTrack ( msg, &sysex, cur_track ); // VRM
}
コード例 #4
0
 void    MIDIFileReadMultiTrack::mf_text ( MIDIClockTime time, int type, int len, unsigned char *s )
 {
   MIDITimedMessage msg;
   
   msg.SetStatus ( META_EVENT );
   msg.SetMetaType ( ( uchar ) type ); // remember - MF_*_TEXT* id codes match META_*_TEXT codes
   msg.SetTime ( time );
   
   MIDISystemExclusive *sysex = new MIDISystemExclusive ( len );
   
   for ( int i=0; i<len; ++i )
   {
     sysex->PutSysByte ( s[i] );
   }
   
   AddEventToMultiTrack ( msg, sysex, cur_track );
 }