Changeset ce6f652
- Timestamp:
- Jul 31, 2015, 10:25:30 PM (9 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 8e94af5
- Parents:
- 053495b
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiotrack.c
r053495b rce6f652 71 71 tempo_out = new_fvec(2); 72 72 tempo = new_aubio_tempo(tempo_method, buffer_size, hop_size, samplerate); 73 // set silence threshold very low to output beats even during silence 74 // aubio_tempo_set_silence(tempo, -1000.); 73 75 if (onset_threshold != 0.) aubio_tempo_set_threshold (tempo, onset_threshold); 74 76 -
src/tempo/tempo.c
r053495b rce6f652 110 110 tempo->data[0] = o->out->data[i] - FLOOR(o->out->data[i]); /* set tactus */ 111 111 /* test for silence */ 112 /*113 112 if (aubio_silence_detection(input, o->silence)==1) { 114 113 tempo->data[0] = 0; // unset beat if silent 115 114 } 116 */117 115 o->last_beat = o->total_frames + (uint_t)ROUND(tempo->data[0] * o->hop_size); 118 116 }
Note: See TracChangeset
for help on using the changeset viewer.