OpenMIDIProject

Home | News | Forums | Documentations | FAQ | Links | Contributors | Author

Japanese | English | Chinese


MIDI module condition keeping library "MIDIStatusLibrary" (DLL)

"MIDIStatusLibrary" is free, open source library for keeping a current condition of MIDI module. MIDIStatus can keep which key is pressed or released, the value of controller, program-number, pitch-bend, master volume, master reverb, master chorus and so on. You may get or set these values. Also, all values can be set by MIDI message including system exclusive message defined in MIDI1.0/GM/GM2/GS/XG, in real time. It provides essential functions to access each value in MIDIStatus which keeps current condition of MIDI module.

/* change master volume of MIDIStatus object from 127 to 100. */
#include <stdio.h>
#include <tchar.h>
#include <MIDIStatus.h>
int _tmain () {
	long lMasterVolume;
	unsinged char cMIDIMessage[] = {0xF0, 0x7F, 0x7F, 0x04, 0x01, 0x00, 0x64, 0xF7};
	MIDIStatus* pMIDIStatus = MIDIStatus_Create (MIDISTATUS_MODENATIVE);
	if (pMIDIStatus == NULL) {
		_tprintf (_T("MIDIStatus_Create failed.\n"));
		return 0;
	}
	/* default master volume is 127. */
	lMasterVolume = MIDIStatus_GetMasterVolume (pMIDIStatus);
	_tprintf (_T("Current master volume=%d\n"), lMasterVolume);
	/* change master volume to 100 */
	MIDIStatus_PutMIDIMessage (pMIDIStatus, cMIDIMessage, 8);
	lMasterVolume = MIDIStatus_GetMasterVolume (pMIDIStatus);
	_tprintf (_T("Current master volume=%d\n"), lMasterVolume);
	MIDIStatus_Delete (pMIDIStatus);
	pMIDIStatus = NULL;
	return 1;
}
Name OS FileName Release day Size
■MIDIStatusLibrary0.9 Windows XP / Vista / 7 / 8.1 MIDIStatusLib0.9.zip 2014/04/29 428KB
■MIDIStatusLibrary0.8 Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIStatusLib0.8.zip 2013/03/03 244KB
■MIDIStatusLibrary0.7 Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIStatusLib0.7.zip 2012/12/02 244KB
■MIDIStatusLibrary0.6 Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIStatusLib0.6.zip 2009/12/26 236KB
■MIDIStatusLibrary0.5 Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIStatusLib0.5.zip 2008/03/31 179KB


(C)2002-2018 kuzu / openmidiproject OSDN