Get MIDI events with a single line of code.
This library uses the NAudio.Midi to catch MIDI events from MIDI devices. The purpose is to provide an extremely simple interface for receiving MIDI input which makes this tool extremely useful for automation and purposes other than music production. If you need more advanced MIDI features you will need to use another library.
Only receiving MIDI input is included. Sending MIDI events might be included in the future.
Install-Package EzMidi -Version 1.0.3
using EzMidi;
public class ExampleCode {
public static void Main(string[] args) {
MidiListener.StartListening(MidiListenerSettings.Default, OnMidiEvent);
Console.ReadLine();
}
public static void OnMidiEvent(MidiEvent e) {
Console.WriteLine(e.ToPrettyString());
}
}
This document explains the usage in more detail.