Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.33 KB

midiOutShortMsg.md

File metadata and controls

56 lines (37 loc) · 1.33 KB

Home

Function name : midiOutShortMsg

Group: Windows Multimedia - Library: winmm


Sends a short MIDI message to the specified MIDI output device.


Code examples:

How to play MIDI notes

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.


Comments:

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.