From 21eb0f825f63d7f6a9f9913e88fef8620b618c63 Mon Sep 17 00:00:00 2001 From: Pierre Alexandre Tremblay Date: Wed, 11 Jul 2018 10:32:09 +0100 Subject: [PATCH] now working range for loop using reference instead of value (which was copied) --- fdNMF.cpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/fdNMF.cpp b/fdNMF.cpp index 2d959c1..69ac7ba 100644 --- a/fdNMF.cpp +++ b/fdNMF.cpp @@ -3,6 +3,7 @@ #include "SC_PlugIn.h" #include +// #include "stft.h" static InterfaceTable *ft; @@ -47,16 +48,20 @@ void BufNMF(World *world, struct SndBuf *dstBuf, struct sc_msg_iter *msg) tmp_vec[i] = srcBuf->data[(i*srcChanCount)+j]; } - // //dumb vector process with c++ syntax - // for(double value : tmp_vec){ - // value *= -1; - // } - //dumb vector process with c++ syntax - for(int i=0;i out_vec = istft.process(spec); + //writes the output for (int i=0;idata[(i*srcChanCount)+j] = (float)tmp_vec[i];