private string GetNanoKontrolOutputDeviceName() { foreach (string potentialName in MidiInformation.GetOutputDevices()) { if (potentialName.Contains("nano")) { return(potentialName); } } return(string.Empty); }
private string GetNanoKontrolOutputDeviceName() { foreach (string potentialName in MidiInformation.GetOutputDevices()) { if (potentialName.ToLower().Contains("nano")) { return(potentialName); } } this.LogWarning("Unable to find nanoKontrol device!"); foreach (string notNanoKontrol in MidiInformation.GetInputDevices()) { this.LogWarning("Device: {0}", notNanoKontrol); } return(string.Empty); }