public ConfigWindow() { InitializeComponent(); capturer = new AudioCapturer(); capturer.NewPick += Capturer_NewPick; capturer.Dence = 0.01f; samples = new List <Sample>(); samplesOneType = 0; testedNote = new Note(0); timer = new DispatcherTimer(); timer.Interval = new TimeSpan(0, 0, 20); timer.Tick += Timer_Tick; }
public MainWindow() { InitializeComponent(); capturer = new AudioCapturer(); capturer.NewPick += Capturer_NewPick; slSens.DataContext = capturer; renderer = new WaveRenderer(cnvWave); appInfo = new AppInfo(lbFreq, lbNote, lbState, lbSens); noteFinder = new NoteFinder(@"..\..\data\net.fnn"); updateTimer = new DispatcherTimer(); updateTimer.Interval = new TimeSpan(0, 0, 0, 0, 30); updateTimer.Tick += UpdateTimer_Tick; testSong = new Song(new SongRenderer(@"..\..\data\img\note.png", @"..\..\data\img\sharp.png", @"..\..\data\img\background.png", cnvSong)); lastSound = DateTime.Now; }