Changeset cb0415d
- Timestamp:
- Sep 6, 2007, 6:04:08 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:
- 21bd43c, 229ea56
- Parents:
- 6fadb0d
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/tests/test-tempo.c
r6fadb0d rcb0415d 10 10 uint_t i = 0; 11 11 12 smpl_t curtempo; 13 12 14 while (i < 1000) { 13 15 aubio_tempo(o,in,out); 16 curtempo = aubio_tempo_get_bpm(o); 17 if (curtempo != 0.) { 18 fprintf(stdout,"%f\n",curtempo); 19 } 14 20 i++; 15 21 }; -
src/tempo.c
r6fadb0d rcb0415d 124 124 } 125 125 126 smpl_t aubio_tempo_get_bpm(aubio_tempo_t *o) { 127 return aubio_beattracking_get_bpm(o->bt); 128 } 129 126 130 void del_aubio_tempo (aubio_tempo_t *o) 127 131 { -
src/tempo.h
r6fadb0d rcb0415d 50 50 void aubio_tempo_set_threshold(aubio_tempo_t * o, smpl_t threshold); 51 51 52 /** get current tempo 53 54 \param bt beat tracking object 55 56 Returns the currently observed tempo, or 0 if no consistent value is found 57 58 */ 59 smpl_t aubio_tempo_get_bpm(aubio_tempo_t * bt); 60 52 61 /** delete tempo detection object */ 53 62 void del_aubio_tempo(aubio_tempo_t * o);
Note: See TracChangeset
for help on using the changeset viewer.