Skip to content

porrasm/EzMidi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EzMidi

Get MIDI events with a single line of code.

About

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.

How to use

Install package from Nuget

Install-Package EzMidi -Version 1.0.3

Setup callback

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());
    }
}

Documentation

This document explains the usage in more detail.

About

Get MIDI events with a single line of code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages