P
Phone Box
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("winmm.dll")]
private static extern long mciSendString(string strCommand,StringBuilder
strReturn,int iReturnLength, IntPtr hwndCallback);
[DllImport("Winmm.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
midiInGetDevCaps
midiInGetErrorText
midiInGetID
midiInGetNumDevs
midiInMessage
midiInOpen
midiInPrepareHeader
MidiInProc
midiInReset
midiInStart
midiInStop
midiInUnprepareHeader
midiOutCacheDrumPatches
midiOutCachePatches
midiOutClose
midiOutGetDevCaps
midiOutGetErrorText
midiOutGetID
midiOutGetNumDevs
midiOutGetVolume
midiOutLongMsg
midiOutMessage
midiOutOpen
midiOutPrepareHeader
MidiOutProc
midiOutReset
midiOutSetVolume
midiOutShortMsg
midiOutUnprepareHeader
midiStreamClose
midiStreamOpen
midiStreamOut
midiStreamPause
midiStreamPosition
midiStreamProperty
midiStreamRestart
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("winmm.dll")]
private static extern long mciSendString(string strCommand,StringBuilder
strReturn,int iReturnLength, IntPtr hwndCallback);
[DllImport("Winmm.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
midiInGetDevCaps
midiInGetErrorText
midiInGetID
midiInGetNumDevs
midiInMessage
midiInOpen
midiInPrepareHeader
MidiInProc
midiInReset
midiInStart
midiInStop
midiInUnprepareHeader
midiOutCacheDrumPatches
midiOutCachePatches
midiOutClose
midiOutGetDevCaps
midiOutGetErrorText
midiOutGetID
midiOutGetNumDevs
midiOutGetVolume
midiOutLongMsg
midiOutMessage
midiOutOpen
midiOutPrepareHeader
MidiOutProc
midiOutReset
midiOutSetVolume
midiOutShortMsg
midiOutUnprepareHeader
midiStreamClose
midiStreamOpen
midiStreamOut
midiStreamPause
midiStreamPosition
midiStreamProperty
midiStreamRestart
midiStreamStop
Many thanks
Peter.