private void Window_Loaded(object sender, RoutedEventArgs e) { Window_SourceInitialized(this, null); Focus(); Topmost = true; Topmost = false; BringIntoView(); Activate(); Keyboard.Focus(this); audioThreads.Maximum = Environment.ProcessorCount; loaderSettings = settings.GetMIDILoaderSettings(); var ls = loaderSettings.Clone(); audioThresh.Value = ls.EventVelocityThreshold; visibleThresh.Value = ls.NoteVelocityThreshold; audioThreads.Value = ls.EventPlayerThreads; removeOverlaps.IsChecked = loaderSettings.RemoveOverlaps; }
public MIDILoaderSettings GetMIDILoaderSettings() { return(loaderSettings.Clone()); }