Thread: midi matrix

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    13

    midi matrix

    can anyone explain midiport.h functions??

    need to alter this to play a matrix:

    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));
    			}
    don't understand the pm synthex??

  2. #2
    Banned
    Join Date
    Dec 2008
    Location
    Maputo, Mozambique
    Posts
    82
    Wut libwewy duz dis ooze?

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    13
    portmidi.lib porttime.lib and winmm.lib

    yea sorry that should have been portmidi.h

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C - access violation
    By uber in forum C Programming
    Replies: 2
    Last Post: 07-08-2009, 01:30 PM
  2. Matrix Help
    By HelpmeMark in forum C++ Programming
    Replies: 27
    Last Post: 03-06-2008, 05:57 PM
  3. Gauss-Jordan Matrix Inversion in C++
    By Max_Power82 in forum C++ Programming
    Replies: 3
    Last Post: 12-03-2006, 08:31 PM
  4. Matrix and vector operations on computers
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 05-11-2004, 06:36 AM