projects
/
ofxAubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a1a988
)
src/ofxAubioBeat.cpp: higher silence threshold to avoid playing beats during silence
author
Paul Brossier
<piem@piem.org>
Tue, 19 Jan 2016 13:44:28 +0000
(14:44 +0100)
committer
Paul Brossier
<piem@piem.org>
Tue, 19 Jan 2016 13:44:28 +0000
(14:44 +0100)
src/ofxAubioBeat.cpp
patch
|
blob
|
history
diff --git
a/src/ofxAubioBeat.cpp
b/src/ofxAubioBeat.cpp
index
2add9a0
..
a2a44cf
100644
(file)
--- 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