2 Replies - 2984 Views - Last Post: 04 September 2009 - 04:38 PM

#1 Richard95123   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 02-June 09

midi in C#

Post icon  Posted 12 August 2009 - 06:37 PM

I need an expert in C# midi
My code doesn't work, What am I missing? I'm creating a form application in VS 2008 C#


Please give me an estimate of how much it will cost to fix this:
[DllImport("winmm.dll")]
		private static extern int midiOutOpen(int handle, int deviceID, int proc, int instance, int flags);
		[DllImport("winmm.dll")]
		static extern uint midiInGetNumDevs();
		uint d = midiInGetNumDevs();
		static int hndle = 0;
		int result = midiOutOpen(hndle, 0, 0, 0,0);
		[DllImport("winmm.dll")]
		public static extern int midiOutShortMsg(int h, int m);
		int r = midiOutShortMsg(hndle, 0x00403C90);


Is This A Good Question/Topic? 0
  • +

Replies To: midi in C#

#2 Jayman   User is offline

  • Student of Life
  • member icon

Reputation: 423
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: midi in C#

Posted 13 August 2009 - 07:34 AM

Moving this topic to the Post a Job forum.
Was This Post Helpful? 0
  • +
  • -

#3 MentalFloss   User is offline

  • .
  • member icon

Reputation: 619
  • View blog
  • Posts: 1,590
  • Joined: 02-September 09

Re: midi in C#

Posted 04 September 2009 - 04:38 PM

Perhaps the work of this guy can aid you in your quest:
http://www.codeproje...IDIToolkit.aspx

I haven't downloaded the code, used the API, or anything.... but I did read the write-up and it looks pretty decent.

Perhaps this will quicken your product release.

Hopefully this helps.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1