MIDI I/O in C# 
Author Message
 MIDI I/O in C#

I am looking to produce a software MIDI sampler/synthesiser using C#.
I would like to be able to interface with external MIDI devices such
as keyboards.

I have had a good look through the documentation and looked all over
the internet but there seems to be very little to do with C# and
multimedia.

I have downloaded the DirectX 8.1 SDK and looked at that for
information about MIDI input/output but can't seem to find anything.
Most resources seem to point to the DirectMusic Producer for producing
music to go with Games etc.

The only .NET MIDI libraries seem to belong to C++ with the mmsystem.h
header file. Is there a similar equivalent available in C#. Might i
have to produce a C++ wrapper for this file to use it with C# or is
there something obvious i have missed.

I don't have endless experience with any of the C variants so i might
in the end use Java to produce my application. I like the .NET
development environment and think this would be 'nicer' to use to
produce a Windows Application.

What should/can i do?

Any help is greatly appreciated

Jonathan Davies



Wed, 05 Jan 2005 08:35:03 GMT  
 MIDI I/O in C#
Yes, .NET V1 has no multimedia support.
 (AFAIK it got no priority for a generic V1 framework)

You have to use PInvoke like MCI
  http://www.mentalis.org/soft/class.qpx?id=1
(or to mmsystem, directmusic)

or use the "Managed Extensions for C++"
and write wrapper classes:

    http://msdn.microsoft.com/vstudio/techinfo/articles/upgrade/managedex...
  section 'Managed C++' :
    http://www.gotdotnet.com/team/cplusplus/

  check on your VS.NET install path:
    ...\VC7\managedextensionsspec.doc
    ...\VC7\migration_guide.doc

--
  NETMaster  (Thomas Scheidegger)
  http://www.cetus-links.org/oo_csharp.html

Quote:

> The only .NET MIDI libraries seem to belong to C++ with the mmsystem.h
> header file. Is there a similar equivalent available in C#. Might i
> have to produce a C++ wrapper for this file to use it with C# or is
> there something obvious i have missed.
> I don't have endless experience with any of the C variants so i might
> in the end use Java to produce my application. I like the .NET
> development environment and think this would be 'nicer' to use to
> produce a Windows Application.



Wed, 05 Jan 2005 17:42:58 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Diff between PPC OS / HPC OS/ eXP OS

2. Accessing the MIDI port in C#

3. Game / midi port with C#

4. API + MIDI in C#

5. To GET Processor Speed, OS , Memory in C#....?

6. midi i/o

7. MIDI

8. Sample graphics and MIDI programs in LCC-Win32

9. Routines that play MIDI files...

10. Book FS: MIDI Sequencing in C

11. MIDI LOW-LEVEL DOS

12. MIDI

 

 
Powered by phpBB® Forum Software