[tests] wrap long lines in test-tempo.c
authorPaul Brossier <piem@piem.org>
Sat, 24 Nov 2018 17:30:17 +0000 (18:30 +0100)
committerPaul Brossier <piem@piem.org>
Sat, 24 Nov 2018 17:30:17 +0000 (18:30 +0100)
tests/src/tempo/test-tempo.c

index 9a8cef8..3fbb4cd 100644 (file)
@@ -15,7 +15,8 @@ int main (int argc, char **argv)
     } else {
       err = 0;
     }
     } 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;
     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];
   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);
   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
   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; }
 
 
   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) {
     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_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 );
     }
     n_frames += read;
   } while ( read == hop_size );