Exemplo n.º 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));
        }
Exemplo n.º 2
0
 private void ApplySettingsPostInit()
 {
     //Attempt to open the last midi device
     MidiManager.OpenMidiDevice(SettingsManager.Settings.LastMidiInputDevice, SettingsManager.Settings.LastMidiOutputDevice);
 }