Changeset e34b010
- Timestamp:
- Oct 5, 2007, 5:10:56 PM (17 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:
- 647a2d8, 6bec1ed
- Parents:
- 203c551
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/tests/test-beattracking.c
r203c551 re34b010 13 13 uint_t i = 0; 14 14 15 smpl_t curtempo ;15 smpl_t curtempo, curtempoconf; 16 16 17 17 while (i < 10) { … … 19 19 curtempo = aubio_beattracking_get_bpm(tempo); 20 20 if (curtempo != 0.) { 21 fprintf(stdout,"%f\n",curtempo); 22 return 1; 23 } 24 curtempoconf = aubio_beattracking_get_confidence(tempo); 25 if (curtempoconf != 0.) { 21 26 fprintf(stdout,"%f\n",curtempo); 22 27 return 1; -
examples/tests/test-tempo.c
r203c551 re34b010 10 10 uint_t i = 0; 11 11 12 smpl_t curtempo ;12 smpl_t curtempo, curtempoconf; 13 13 14 14 while (i < 1000) { … … 17 17 if (curtempo != 0.) { 18 18 fprintf(stdout,"%f\n",curtempo); 19 return 1; 20 } 21 curtempoconf = aubio_beattracking_get_confidence(o); 22 if (curtempoconf != 0.) { 23 fprintf(stdout,"%f\n",curtempo); 24 return 1; 19 25 } 20 26 i++; -
src/beattracking.c
r203c551 re34b010 461 461 } 462 462 } 463 464 smpl_t aubio_beattracking_get_confidence(aubio_beattracking_t * bt) { 465 if (bt->gp) return vec_max(bt->acfout); 466 else return 0.; 467 } -
src/beattracking.h
r203c551 re34b010 69 69 */ 70 70 smpl_t aubio_beattracking_get_bpm(aubio_beattracking_t * bt); 71 /** get current tempo confidence 72 73 \param bt beat tracking object 74 75 Returns the confidence with which the tempo has been observed, 0 if no 76 consistent value is found. 77 78 */ 79 smpl_t aubio_beattracking_get_confidence(aubio_beattracking_t * bt); 71 80 /** delete beat tracking object 72 81 -
src/tempo.c
r203c551 re34b010 128 128 } 129 129 130 smpl_t aubio_tempo_get_confidence(aubio_tempo_t *o) { 131 return aubio_beattracking_get_confidence(o->bt); 132 } 133 130 134 void del_aubio_tempo (aubio_tempo_t *o) 131 135 { -
src/tempo.h
r203c551 re34b010 59 59 smpl_t aubio_tempo_get_bpm(aubio_tempo_t * bt); 60 60 61 /** get current tempo confidence 62 63 \param bt beat tracking object 64 65 Returns the confidence with which the tempo has been observed, 0 if no 66 consistent value is found. 67 68 */ 69 smpl_t aubio_tempo_get_confidence(aubio_tempo_t * bt); 70 61 71 /** delete tempo detection object */ 62 72 void del_aubio_tempo(aubio_tempo_t * o); -
swig/aubio.i
r203c551 re34b010 258 258 void aubio_beattracking_do(aubio_beattracking_t * bt, fvec_t * dfframes, fvec_t * out); 259 259 void del_aubio_beattracking(aubio_beattracking_t * p); 260 smpl_t aubio_beattracking_get_bpm(aubio_beattracking_t * p); 261 smpl_t aubio_beattracking_get_confidence(aubio_beattracking_t * p); 260 262 261 263
Note: See TracChangeset
for help on using the changeset viewer.