From: Paul Brossier Date: Tue, 19 Jan 2016 13:44:28 +0000 (+0100) Subject: src/ofxAubioBeat.cpp: higher silence threshold to avoid playing beats during silence X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=3343220581945fc0cdbd984cda8e81f10847bf55;p=ofxAubio.git src/ofxAubioBeat.cpp: higher silence threshold to avoid playing beats during silence --- diff --git a/src/ofxAubioBeat.cpp b/src/ofxAubioBeat.cpp index 2add9a0..a2a44cf 100644 --- a/src/ofxAubioBeat.cpp +++ b/src/ofxAubioBeat.cpp @@ -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