midirecv(offset,msg1,msg23)
Example:
midirecv(offset,msg1,msg23);
(msg1&$xF0)==$x90 ? ( /* note on! */ )
Note: midirecv returns msg1 as a return value, as well.
So you can do things like:
while( midirecv(offs,msg1,msg23) ? ( midisend(offs,msg1,msg23); ); );