private string GetNanoKontrolInputDeviceName()
 {
     foreach (string potentialName in MidiInformation.GetInputDevices())
     {
         if (potentialName.Contains("nano"))
         {
             return(potentialName);
         }
     }
     return(string.Empty);
 }
示例#2
0
 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);
 }