From 075bc57f99576413ff37b3cbd4b18c24b1c0b8ec Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 24 Nov 2018 18:30:17 +0100 Subject: [PATCH] [tests] wrap long lines in test-tempo.c --- tests/src/tempo/test-tempo.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/src/tempo/test-tempo.c b/tests/src/tempo/test-tempo.c index 9a8cef88..3fbb4cd3 100644 --- a/tests/src/tempo/test-tempo.c +++ b/tests/src/tempo/test-tempo.c @@ -15,7 +15,8 @@ int main (int argc, char **argv) } else { err = 0; } - PRINT_MSG("usage: %s [samplerate] [win_size] [hop_size]\n", argv[0]); + PRINT_MSG("usage: %s [samplerate] [win_size] [hop_size]\n", + argv[0]); return err; } uint_t samplerate = 0; @@ -27,7 +28,8 @@ int main (int argc, char **argv) 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 @@ int main (int argc, char **argv) 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 @@ int main (int argc, char **argv) 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 ); -- 2.11.0