Changeset 075bc57
- Timestamp:
- Nov 24, 2018, 6:30:17 PM (6 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
- Children:
- 832b0f64
- Parents:
- be83390
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/tempo/test-tempo.c
rbe83390 r075bc57 16 16 err = 0; 17 17 } 18 PRINT_MSG("usage: %s <source_path> [samplerate] [win_size] [hop_size]\n", argv[0]); 18 PRINT_MSG("usage: %s <source_path> [samplerate] [win_size] [hop_size]\n", 19 argv[0]); 19 20 return err; 20 21 } … … 28 29 29 30 char_t *source_path = argv[1]; 30 aubio_source_t * source = new_aubio_source(source_path, samplerate, hop_size); 31 aubio_source_t * source = new_aubio_source(source_path, samplerate, 32 hop_size); 31 33 if (!source) { err = 1; goto beach; } 32 34 … … 38 40 39 41 // create tempo object 40 aubio_tempo_t * o = new_aubio_tempo("default", win_size, hop_size, samplerate); 42 aubio_tempo_t * o = new_aubio_tempo("default", win_size, hop_size, 43 samplerate); 41 44 42 45 if (!o) { err = 1; goto beach_tempo; } … … 49 52 // do something with the beats 50 53 if (out->data[0] != 0) { 51 PRINT_MSG("beat at %.3fms, %.3fs, frame %d, %.2fbpm with confidence %.2f\n", 54 PRINT_MSG("beat at %.3fms, %.3fs, frame %d, %.2f bpm " 55 "with confidence %.2f\n", 52 56 aubio_tempo_get_last_ms(o), aubio_tempo_get_last_s(o), 53 aubio_tempo_get_last(o), aubio_tempo_get_bpm(o), aubio_tempo_get_confidence(o)); 57 aubio_tempo_get_last(o), aubio_tempo_get_bpm(o), 58 aubio_tempo_get_confidence(o)); 54 59 } 55 60 n_frames += read;
Note: See TracChangeset
for help on using the changeset viewer.