public void Start(SimpleNoteDetectionArgs args) { if (_fftSource == null) throw new Exception("FFT source is null"); _runThread = true; _noteDetectionThread.Start(); }
public void Start(SimpleNoteDetectionArgs args) { if (_noteDetectionThread != null) return; _stopDetecting = false; step = 2 * sps / samples; _noteDetectionThread = new Thread(new ThreadStart(DetectNotes)); _noteDetectionThread.Start(); }
public void Start(SimpleNoteDetectionArgs args) { if (_noteDetectionThread != null) return; _stopDetecting = false; _step = _sampleRate / _samples; //if (_impulseAlg) //_noteDetectionThread = new Thread(new ThreadStart(ImpulseDetectNotes)); //else _noteDetectionThread = new Thread(new ThreadStart(ImpulseDetectNotes)); _noteDetectionThread.Start(); }
public void Start(SimpleNoteDetectionArgs args) { Stop(); _detecting = true; _noteThread.Start(); }