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];