Changeset 0482e76
- Timestamp:
- Sep 12, 2009, 1:13:10 PM (15 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:
- 54a5d56
- Parents:
- f698997
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tempo/tempo.c
rf698997 r0482e76 76 76 for (i = 1; i < o->out->data[0][0]; i++ ) { 77 77 /* if current frame is a predicted tactus */ 78 if (o->blockpos == o->out->data[0][i]) { 78 if (o->blockpos == FLOOR(o->out->data[0][i])) { 79 tempo->data[0][0] = 1. + o->out->data[0][i] - FLOOR(o->out->data[0][i]); /* set tactus */ 79 80 /* test for silence */ 80 81 if (aubio_silence_detection(input, o->silence)==1) { 81 82 tempo->data[0][1] = 0; /* unset onset */ 82 tempo->data[0][0] = 0; /* unset tactus */83 } else {84 tempo->data[0][0] = 1; /* set tactus */85 83 } 86 84 }
Note: See TracChangeset
for help on using the changeset viewer.