From 3343220581945fc0cdbd984cda8e81f10847bf55 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 19 Jan 2016 14:44:28 +0100 Subject: [PATCH] src/ofxAubioBeat.cpp: higher silence threshold to avoid playing beats during silence --- src/ofxAubioBeat.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- 2.11.0