 |
midiOutShortMsg ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Sends a short MIDI message to the specified MIDI output device. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
MMRESULT midiOutShortMsg(
HMIDIOUT hmo,
DWORD dwMsg
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER midiOutShortMsg IN Winmm;
INTEGER hmo,;
LONG dwMsg
|
 |
 |
 |
| Parameters: |
 |
hmo
Handle to the MIDI output device. This parameter can also be the handle of a MIDI stream cast to HMIDIOUT.
dwMsg
MIDI message. The message is packed into a DWORD value.
|
 |
 |
| Return value: |
 |
| Returns MMSYSERR_NOERROR (0) if successful or an error otherwise. |
 |
 |
| Usage: |
 |
* this code plays a note
#DEFINE MIDI_PLAYNOTE_STATUS 144 && 10010000="Note On" code
nMsg = MIDI_PLAYNOTE_STATUS +;
BITLSHIFT(m.nNote,8) +;
BITLSHIFT(m.nVelocity,16)
= midiOutShortMsg(m.hDevice, m.nMsg)
|
 |
 |
| My comment: |
 |
A MIDI output device must be open prior to calling this function.
Read about MIDI messages (second parameter in the call) on MIDI.org.
See also: midiOutOpen |
 |
 |
| Word Index links for the midiOutShortMsg : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2008-04-09 19:26:59 | | Modified: | 2008-04-09 19:37:23 | Visited in last 7 days: 18 |