开源MIDI项目

主页 | 新闻 | 论坛 | 文件 | 常见问题 | 链接 | 贡献者 | 作者

Japanese | English | Chinese


MIDI音源状态管理库“MIDIStatus库”(DLL)

MIDIStatus库是自由且开源的MIDI音源状态管理库。这个库有把键盘的状态,控制变化的状态,程序变化的状态,弯音的状态,主音量,主混响,主合唱,主延迟等等记住的功能。这也有把状态取得・设定的函数。为了实时设定音源状态,你也可以放MIDI消息。这个库对应于MIDI1.0/GM/GM2/GS/XG的MIDI消息。

/* 使用示例:把MIDIStatus对象的主音量变更从127到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对象创造失败。\n"));
		return 0;
	}
	/* 默认的主音量是127 */
	lMasterVolume = MIDIStatus_GetMasterVolume (pMIDIStatus);
	_tprintf (_T("现在的主音量=%d\n"), lMasterVolume);
	/* 把主音量设定100 */
	MIDIStatus_PutMIDIMessage (pMIDIStatus, cMIDIMessage, 8);
	lMasterVolume = MIDIStatus_GetMasterVolume (pMIDIStatus);
	_tprintf (_T("现在的主音量=%d\n"), lMasterVolume);
	MIDIStatus_Delete (pMIDIStatus);
	pMIDIStatus = NULL;
	return 1;
}
f
对应OS 文件名 发布日 容量
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.