예제 #1
0
        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;
        }
예제 #2
0
 public MIDILoaderSettings GetMIDILoaderSettings()
 {
     return(loaderSettings.Clone());
 }