src/synth/wavetable.c: always clamp wavetable
authorPaul Brossier <piem@piem.org>
Sun, 26 Mar 2017 13:58:41 +0000 (15:58 +0200)
committerPaul Brossier <piem@piem.org>
Sun, 26 Mar 2017 13:58:41 +0000 (15:58 +0200)
src/synth/wavetable.c

index ea08568..04d1dd4 100644 (file)
@@ -103,7 +103,7 @@ void aubio_wavetable_do ( aubio_wavetable_t * s, const fvec_t * input, fvec_t *
     for (i = 0; i < output->length; i++) {
       output->data[i] += input->data[i];
     }
-    fvec_clamp(obuf, 1.);
+    fvec_clamp(output, 1.);
   }
 }