1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
//MOD_MIDIPORT : port hardware matérialisant une voie de communication avec des instruments extérieurs
//MOD_SQSYNTH : synthétiseur interne de signaux carrés
//MOD_FMSYNTH : synthétiseur FM interne. Permet de simuler des instruments de musique
//MOD_MAPPER : Microsoft MIDI mapper
int wDeviceID ;
MIDIOUTCAPS OutCaps ;
for(wDeviceID=0 ; wDeviceID<NbreDevs ; wDeviceID++)
{
midiOutGetDevCaps(wDeviceID, &OutCaps, sizeof(OutCaps) ) ;
if( OutCaps.wTechnology==MOD_MIDIPORT) break ;
}
HMIDIOUT hMidiOut ;
midiOutOpen( &hMidiOut, wDeviceID, NULL, NULL, NULL ) ;
int ret_val = midiOutShortMsg(hMidiOut,0x7F6090);
// ton code de test...
/* Son Off: 0x0000nn8c*/
midiOutShortMsg(hMidiOut,0x0000nn8c) ;
midiOutClose(hMidiOut) ; |
Partager