shithub: aubio

Download patch

ref: f174a22e8ab3594f918b4a8e5112b8f2148d1aae
parent: bd1fa89b806943e5e99d6bef368af2c163ca8589
author: Paul Brossier <piem@piem.org>
date: Fri Mar 22 15:41:03 EDT 2013

tests/src/synth/test-sampler.c: shorter frames, repeat three times

--- a/tests/src/synth/test-sampler.c
+++ b/tests/src/synth/test-sampler.c
@@ -13,7 +13,7 @@
   }
 
   uint_t samplerate = 0; // default is the samplerate of input_path
-  uint_t hop_size = 512;
+  uint_t hop_size = 256;
   uint_t n_frames = 0, read = 0;
 
   char_t *source_path = argv[1];
@@ -35,7 +35,10 @@
     if (n_frames / hop_size == 10) {
       aubio_sampler_play ( sampler );
     }
-    if (n_frames / hop_size == 20) {
+    if (n_frames / hop_size == 40) {
+      aubio_sampler_play ( sampler );
+    }
+    if (n_frames / hop_size == 70) {
       aubio_sampler_play ( sampler );
     }
     if (n_frames > 10.0 * samplerate) {