예제 #1
0
        public void ReloadMidiDevice()
        {
            MidiManager.OpenMidiDevice(SelectedMidiInputDevice, SelectedMidiOutputDevice);
            //DEBUG
            //MidiManager.OpenMidiDevice(MidiManager.GetMidiInputDevices().Last(), MidiManager.GetMidiOutputDevices().Last());

            SettingsManager.Settings.LastMidiInputDevice  = SelectedMidiInputDevice.Id;
            SettingsManager.Settings.LastMidiOutputDevice = SelectedMidiOutputDevice.Id;

            OnPropertyChanged(nameof(ConnectedMidiInputDevice));
            OnPropertyChanged(nameof(ConnectedMidiOutputDevice));
        }
예제 #2
0
 private void ApplySettingsPostInit()
 {
     //Attempt to open the last midi device
     MidiManager.OpenMidiDevice(SettingsManager.Settings.LastMidiInputDevice, SettingsManager.Settings.LastMidiOutputDevice);
 }