midi-dot-net icon indicating copy to clipboard operation
midi-dot-net copied to clipboard

Error in the application

Open cn-ml opened this issue 3 years ago • 0 comments

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?

cn-ml avatar Feb 11 '22 19:02 cn-ml