can anyone explain midiport.h functions??
need to alter this to play a matrix:
don't understand the pm synthex??Code:else { char chan = 0; int prg = 0; long time = 0; for(i=60; i < 72; prg+=4, i++) { Pm_WriteShort(mstream, 0, Pm_Message(SBYTE(MD_PRG,chan), prg, 0)); time = Pt_Time(NULL); Pm_WriteShort(mstream, 0, Pm_Message(SBYTE(MD_NOTEON,chan), i, 120)); while(Pt_Time(NULL) - time < 1000); Pm_WriteShort(mstream, 0, Pm_Message(SBYTE(MD_NOTEOFF,chan), i, 120)); }