static void Main(string[] args) { var input = new MidiInput(); input.MidiDataReceived += Input_MidiDataReceived; Console.WriteLine(MidiInput.GetNumDevices()); foreach (var device in MidiInput.GetDevices()) { Console.WriteLine(device.Name); } Console.WriteLine(input.Initialize(1)); input.Start(); Console.WriteLine(input.Name); Console.ReadKey(); }