public static uint GetInputPort() { return(MidiInput.FindPortByName("Launch Control XL")); }
/// <summary> /// Get Input port based on the type of Launchpad /// </summary> /// <param name="state"> the type of port to look for in the launchpad pro. </param> /// <returns>device port based on the type of state, MIDIINERROR if the launchpad was not found. </returns> public static uint GetInputPort(LaunchpadProState state) { return(MidiInput.FindPortByName(StateToNameInput(state))); }