typeQuarterFrame (code 130)


A Midi time code quarter frame message with message type and value. These two fields are automatically assembled by MidiShare into one byte when the message is sent.

QuarterFrame events have 2 fields numbered from 0 to 1 :

0
A message type from 0=Frame count LSB nibble to 7=Hours count MS nibble. (Field size : 1 byte)
1
A count nibble from 0 to 15. (Field size : 1 byte)


Creates a QuarterFrame event and returns a pointer to the event or NIL if there is no more memory space.


MidiEvPtr QuarterFrame( long date, short type, short nibble, short port)
{
    MidiEvPtr e;

    if ( e = MidiNewEv( typeQuarterFrame ) )/* Allocate a new event. Check not NIL */ 
    {
        Date(e) = date;        /* These information are common to all */
        Port(e) = port;        /* kind of events */
        MidiSetField(e,0,type);    /* Fields particular to QuarterFrame  */
        MidiSetField(e,1,nibble);
    }
    return e;
}