src/ofxAubioBeat.cpp: higher silence threshold to avoid playing beats during silence
authorPaul Brossier <piem@piem.org>
Tue, 19 Jan 2016 13:44:28 +0000 (14:44 +0100)
committerPaul Brossier <piem@piem.org>
Tue, 19 Jan 2016 13:44:28 +0000 (14:44 +0100)
src/ofxAubioBeat.cpp

index 2add9a0..a2a44cf 100644 (file)
@@ -35,6 +35,7 @@ void ofxAubioBeat::setup(string method, int buf_s, int hop_s, int samplerate)
     ofxAubioBlock::setup(method, buf_s, hop_s, samplerate);
     tempo = new_aubio_tempo((char_t*)method.c_str(),
                             buf_size, hop_size, samplerate);
+    aubio_tempo_set_silence(tempo, -40);
     if (tempo) {
         ofLogNotice() << "created ofxAubioBeat(" << method
           << ", " << buf_size