if (o->blockpos == FLOOR(o->out->data[i])) {
tempo->data[0] = o->out->data[i] - FLOOR(o->out->data[i]); /* set tactus */
/* test for silence */
+ /*
if (aubio_silence_detection(input, o->silence)==1) {
- //tempo->data[0] = 0; /* unset onset */
- } else {
- o->last_beat = o->total_frames + (uint_t)ROUND(tempo->data[0] * o->hop_size);
+ tempo->data[0] = 0; // unset beat if silent
}
+ */
+ o->last_beat = o->total_frames + (uint_t)ROUND(tempo->data[0] * o->hop_size);
}
}
o->total_frames += o->hop_size;