Esempio n. 1
0
        private void btnLoadBeatsFile_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog {
                Filter = "Text Files|*.txt"
            };

            if (dialog.ShowDialog(this) != true)
            {
                return;
            }

            Beats    = BeatCollection.Load(dialog.FileName);
            Duration = Beats.Max();
            UpdateHeatMap();
        }