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
■MIDIIOLibrary1.1 Windows XP / Vista / 7 / 8.1 / 10 MIDIIOLib1.1.zip 2016/04/17 264KB
■MIDIIOLibrary1.0 Windows XP / Vista / 7 / 8.1 MIDIIOLib1.0.zip 2014/04/29 264KB
■MIDIIOLibrary0.9 Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIIOLib0.9.zip 2013/03/03 168KB
■MIDIIOLibrary0.8 Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIIOLib0.8.zip 2012/04/15 168KB
■MIDIIOLibrary0.7 Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIIOLib0.7.zip 2012/02/19 168KB
■MIDIIOLibrary0.6 Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIIOLib0.6.zip 2009/07/05 159KB
■MIDIIOLibrary0.5 Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIIOLib0.5.zip 2009/04/07 116KB
■MIDIIOLibrary0.4 Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIIOLib0.4.zip 2008/03/31 115KB
■MIDIIOLibrary0.3 Windows 95 / 98 / ME / 2000 / XP / Vista / 7 MIDIIOLib0.3.zip 2007/12/31 136KB


(C)2002-2017 kuzu / openmidiproject OSDN