Changeset 54a5d56
- Timestamp:
- Sep 12, 2009, 1:14:53 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:
- 4e19e5b
- Parents:
- 0482e76
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiotrack.c
r0482e76 r54a5d56 24 24 fvec_t * out = NULL; 25 25 aubio_tempo_t * bt = NULL; 26 uint_t istactus = 0;26 smpl_t istactus = 0; 27 27 28 28 int aubio_process(float **input, float **output, int nframes); … … 43 43 /* block loop */ 44 44 aubio_tempo(bt,ibuf,out); 45 if (out->data[0][0] ==1)46 istactus = 1;45 if (out->data[0][0]>=1) 46 istactus = out->data[0][0]; 47 47 else 48 48 istactus = 0; … … 65 65 void process_print (void) { 66 66 if (output_filename == NULL) { 67 if (istactus) 68 outmsg("%f\n",(frames)*overlap_size/(float)samplerate); 67 if (istactus) { 68 outmsg("%f\n",((smpl_t)(frames*overlap_size)+(istactus-1.)*overlap_size)/(smpl_t)samplerate); 69 } 69 70 if (isonset && verbose) 70 71 outmsg(" \t \t%f\n",(frames)*overlap_size/(float)samplerate);
Note: See TracChangeset
for help on using the changeset viewer.