ref: 075bc57f99576413ff37b3cbd4b18c24b1c0b8ec
parent: be83390fa819252aa9bb0bb7430472a2011d501c
author: Paul Brossier <piem@piem.org>
date: Sat Nov 24 13:30:17 EST 2018
[tests] wrap long lines in test-tempo.c
--- a/tests/src/tempo/test-tempo.c
+++ b/tests/src/tempo/test-tempo.c
@@ -15,7 +15,8 @@
} else {
err = 0;
}
- PRINT_MSG("usage: %s <source_path> [samplerate] [win_size] [hop_size]\n", argv[0]);
+ PRINT_MSG("usage: %s <source_path> [samplerate] [win_size] [hop_size]\n",
+ argv[0]);
return err;
}
uint_t samplerate = 0;
@@ -27,7 +28,8 @@
uint_t n_frames = 0, read = 0;
char_t *source_path = argv[1];
- aubio_source_t * source = new_aubio_source(source_path, samplerate, hop_size);
+ aubio_source_t * source = new_aubio_source(source_path, samplerate,
+ hop_size);
if (!source) { err = 1; goto beach; }
if (samplerate == 0 ) samplerate = aubio_source_get_samplerate(source);
@@ -37,7 +39,8 @@
fvec_t * out = new_fvec (1); // output position
// create tempo object
- aubio_tempo_t * o = new_aubio_tempo("default", win_size, hop_size, samplerate);
+ aubio_tempo_t * o = new_aubio_tempo("default", win_size, hop_size,
+ samplerate);
if (!o) { err = 1; goto beach_tempo; }
@@ -48,9 +51,11 @@
aubio_tempo_do(o,in,out);
// do something with the beats
if (out->data[0] != 0) {
- PRINT_MSG("beat at %.3fms, %.3fs, frame %d, %.2fbpm with confidence %.2f\n",
+ PRINT_MSG("beat at %.3fms, %.3fs, frame %d, %.2f bpm "
+ "with confidence %.2f\n",
aubio_tempo_get_last_ms(o), aubio_tempo_get_last_s(o),
- aubio_tempo_get_last(o), aubio_tempo_get_bpm(o), aubio_tempo_get_confidence(o));
+ aubio_tempo_get_last(o), aubio_tempo_get_bpm(o),
+ aubio_tempo_get_confidence(o));
}
n_frames += read;
} while ( read == hop_size );