예제 #1
0
 private string GetNanoKontrolOutputDeviceName()
 {
     foreach (string potentialName in MidiInformation.GetOutputDevices())
     {
         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);
 }