public static void Close() { RequestStop(); if (inputDevice != null && inputDevice.IsOpen) { try { Auto2.UnInitialize(); inputDevice.StopReceiving(); inputDevice.Close(); LogCtrl.Status("Close MIDI In: " + inputDevice.Name); } catch (Exception e) { LogCtrl.Error(e.Message); } } }
public static void Connect(string ip) { Auto2.UnInitialize(); Auto2.Initialize(ip, 0); }