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
Windows 7 / 8.1 / 10 / 11 MIDIStatusLib8.0.zip 2024/01/21 1.58MB
Windows 7 / 8.1 / 10 / 11 MIDIStatusLib7.1.zip 2022/04/17 816KB
Windows 7 / 8.1 / 10 / 11 MIDIStatusLib7.0.zip 2021/08/15 816KB
Windows XP / Vista / 7 / 8.1 / 10 MIDIStatusLib1.1.zip 2020/12/31 1.15MB
Windows XP / Vista / 7 / 8.1 / 10 MIDIStatusLib1.0.zip 2020/11/29 1.15MB
Windows XP / Vista / 7 / 8.1 / 10 MIDIStatusLib0.9.zip 2014/04/29 428KB
Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIStatusLib0.8.zip 2013/03/03 244KB
Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIStatusLib0.7.zip 2012/12/02 244KB
Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIStatusLib0.6.zip 2009/12/26 236KB
Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIStatusLib0.5.zip 2008/03/31 179KB


(C)2000-2024 kuzu All rights reserved.