midi-dot-net
midi-dot-net copied to clipboard
Error in the application
I just tried the minimal example and i just get an error:
var outputDevice = OutputDevice.InstalledDevices.Where(i => i.Name == DeviceName).FirstOrDefault();
if (outputDevice is null) { Console.WriteLine($"MIDI device {DeviceName} not found!"); return 1; }
outputDevice.Open();
outputDevice.SendNoteOn(0, (Pitch)1, 1);
And the last line just throws an exception:
Midi.DeviceException: 'Error in the application.'
Any advice?