A Channel pressure message with pressure value.
![]()
ChanPress events have 1 field numbered 0 :
0- A channel pressure value from 0 to 127. (Field size : 1 byte)
Creates a ChanPress event. Return a pointer to the event or NIL if there is no more memory space.
MidiEvPtr ChanPress( long date, short press, short chan, short port)
{
MidiEvPtr e;
if ( e = MidiNewEv( typeChanPress ) )/* Allocate a new event. Check not NIL*/
{
Date(e) = date; /* These information's are common to all */
Chan(e) = chan; /* kind of events */
Port(e) = port;
MidiSetField(e,0,press); /* Field particular to ChanPress */
}
return e;
}