Hi,
I'm trying to get C# to talk MIDI to a drum machine. As soon as I can
get the MCI functions to compile I'm home and dry. Please can someone point
me in the right direction on how to do this? All I really want is to use the
calls in the DLL via C#. I have found code like this...
[DllImport("winm m.dll")]
private static extern long mciSendString(s tring strCommand,Stri ngBuilder
strReturn,int iReturnLength, IntPtr hwndCallback);
[DllImport("Winm m.dll")]
This sounds like a fairly common operation. I intend to add a series of
these definitions for the following functions...
midiConnect
midiDisconnect
midiInAddBuffer
midiInClose
midiInGetDevCap s
midiInGetErrorT ext
midiInGetID
midiInGetNumDev s
midiInMessage
midiInOpen
midiInPrepareHe ader
MidiInProc
midiInReset
midiInStart
midiInStop
midiInUnprepare Header
midiOutCacheDru mPatches
midiOutCachePat ches
midiOutClose
midiOutGetDevCa ps
midiOutGetError Text
midiOutGetID
midiOutGetNumDe vs
midiOutGetVolum e
midiOutLongMsg
midiOutMessage
midiOutOpen
midiOutPrepareH eader
MidiOutProc
midiOutReset
midiOutSetVolum e
midiOutShortMsg
midiOutUnprepar eHeader
midiStreamClose
midiStreamOpen
midiStreamOut
midiStreamPause
midiStreamPosit ion
midiStreamPrope rty
midiStreamResta rt
midiStreamStop
Many thanks
Peter.
I'm trying to get C# to talk MIDI to a drum machine. As soon as I can
get the MCI functions to compile I'm home and dry. Please can someone point
me in the right direction on how to do this? All I really want is to use the
calls in the DLL via C#. I have found code like this...
[DllImport("winm m.dll")]
private static extern long mciSendString(s tring strCommand,Stri ngBuilder
strReturn,int iReturnLength, IntPtr hwndCallback);
[DllImport("Winm m.dll")]
This sounds like a fairly common operation. I intend to add a series of
these definitions for the following functions...
midiConnect
midiDisconnect
midiInAddBuffer
midiInClose
midiInGetDevCap s
midiInGetErrorT ext
midiInGetID
midiInGetNumDev s
midiInMessage
midiInOpen
midiInPrepareHe ader
MidiInProc
midiInReset
midiInStart
midiInStop
midiInUnprepare Header
midiOutCacheDru mPatches
midiOutCachePat ches
midiOutClose
midiOutGetDevCa ps
midiOutGetError Text
midiOutGetID
midiOutGetNumDe vs
midiOutGetVolum e
midiOutLongMsg
midiOutMessage
midiOutOpen
midiOutPrepareH eader
MidiOutProc
midiOutReset
midiOutSetVolum e
midiOutShortMsg
midiOutUnprepar eHeader
midiStreamClose
midiStreamOpen
midiStreamOut
midiStreamPause
midiStreamPosit ion
midiStreamPrope rty
midiStreamResta rt
midiStreamStop
Many thanks
Peter.
Comment