public void MidiInit() { for (int i = 0; i < MidiIn.NumberOfDevices; i++) { if (MidiIn.DeviceInfo(i).ProductName.Contains("Launch Control XL")) { midiIn = new MidiIn(i); break; } } for (int i = 0; i < MidiOut.NumberOfDevices; i++) { if (MidiOut.DeviceInfo(i).ProductName.Contains("Launch Control XL")) { midiOut = new MidiOut(i); break; } } deviceinterface = new Midi.Interface.LaunchControlXL(midiIn, midiOut); }
public void SetDeviceInterface(Midi.Interface.LaunchControlXL deviceInterface) { DeviceInterface = deviceInterface; }
public void MidiUninit() { deviceinterface = new Midi.Interface.LaunchControlXL(midiIn, midiOut); deviceinterface.Dispose(); }
public LaunchControlXL(Midi.Interface.LaunchControlXL associatedInterface) { AssociatedInterface = associatedInterface; }