Smart Device Functions:
Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than winmm, prefix the name with the module name and a period.
Declare Function midiOutShortMsg Lib "winmm.dll" (hMidiOut As Intptr,dwMsg As UInt32) As UInt32
Alternative Managed API:
Do you know one? Please contribute it!
Tips & Tricks:
Please add some!
byte data = new byte;
// = status byte containing voice message and channel
// = data 1
// = data 2 (empty on some messages)
// = empty
data = 0xC0;//change instrument, channel 0
data = 127;//gunshot
uint msg = BitConverter.ToUInt32(data, 0);
data = 0x90;//note on, channel 0
data = 50;//pitch
data = 100;//velocity
msg = BitConverter.ToUInt32(data, 0);
An IntPtr is a pointer to a memory location (unmanaged) that adapts to the platform it is running on (64-bit, etc.) UNLIKE a standard int/Integer. You should always use this type for unmanaged calls that require it, even though an int will appear to work on your development machine.
1/13/2008 11:00:13 AM - tsahi-18.104.22.168
TODO - a short description
12/19/2011 1:10:27 AM - -22.214.171.124
Please edit this page!
Do you have...