midi matrix

This is a discussion on midi matrix within the C Programming forums, part of the General Programming Boards category; can anyone explain midiport.h functions?? need to alter this to play a matrix: Code: else { char chan = 0; ...

  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, 04:57 PM
  3. Gauss-Jordan Matrix Inversion in C++
    By Max_Power82 in forum C++ Programming
    Replies: 3
    Last Post: 12-03-2006, 07: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21