OpenMIDIProject

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

Japanese | English | Chinese


MIDI message input output library "MIDIIOLibrary" (DLL)

"MIDIIOLibrary" is free, open source library for MIDI message input / output. It enables you to open and close MIDI device, and input and output MIDI messages (including system exclusive message and system real time message) in easy way. It provides essential functions for MIDI message input and output.

Especially, you can omit to write complex code to manage buffer for sending or receiving system exclusive message and post processing in the call back function.

/* Play 'C' tone for 3 seconds. */
#include <stdio.h>
#include <tchar.h>
#include <windows.h>
#include <MIDIIO.h>
int _tmain () {
	unsigned char byMIDIMessage1[3] = {0x90, 0x3C, 0x64};  /* NoteOn Ch=0 Key=60 Vel=100 */ 
	unsigned char byMIDIMessage2[3] = {0x90, 0x3C, 0x00};  /* NoteOn Ch=0 Key=60 Vel=0 */ 
	MIDIOut* pMIDIOut = MIDIOut_Open (_T("Microsoft GS Wavetable Synth")); 
	if (pMIDIOut == NULL) {
		_tprintf (_T("MIDIOut_Open failed.\n"));
		return 0;
	}
	MIDIOut_PutMIDIMessage (pMIDIOut, byMIDIMessage1, 3); /* Press 'c' tone. */
	Sleep (3000); /* wait 3 seconds */
	MIDIOut_PutMIDIMessage (pMIDIOut, byMIDIMessage2, 3); /* Release 'c' tone. */
	MIDIOut_Close (pMIDIOut);  /* Close MIDI device */ 
	pMIDIOut = NULL;
	return 1;
}

Name OS FileName Release day Size
Windows 7 / 8.1 / 10 / 11 MIDIIOLib8.0.zip 2024/01/21 1.23MB
Windows 7 / 8.1 / 10 / 11 MIDIIOLib7.1.zip 2022/04/17 580KB
Windows 7 / 8.1 / 10 MIDIIOLib7.0.zip 2021/08/15 580KB
Windows XP / Vista / 7 / 8.1 / 10 MIDIIOLib1.2.zip 2020/01/05 980KB
Windows XP / Vista / 7 / 8.1 / 10 MIDIIOLib1.1.zip 2016/04/17 264KB
Windows XP / Vista / 7 / 8.1 MIDIIOLib1.0.zip 2014/04/29 264KB
Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIIOLib0.9.zip 2013/03/03 168KB
Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIIOLib0.8.zip 2012/04/15 168KB
Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIIOLib0.7.zip 2012/02/19 168KB
Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIIOLib0.6.zip 2009/07/05 159KB
Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIIOLib0.5.zip 2009/04/07 116KB
Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIIOLib0.4.zip 2008/03/31 115KB
Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIIOLib0.3.zip 2007/12/31 136KB


(C)2000-2024 kuzu All rights reserved.