void YaptCurveFacade::Render(double t, IPluginObjectInstance *pInstance) { if (pCurve != NULL) { double *val = (double *)alloca(sizeof(double) * channels->v->int_val); pCurve->Sample(t, val); //pLogger->Debug("%f,%f",t,val[0]); //printf("%f,%f\n",t,val[0]); for (int i=0;i<channels->v->int_val;i++) { result->v->vector[i] = (float)val[i]; } // double *val = (double *)alloca(sizeof(double) * channels->v->int_val); // FILE *fOut; // fOut = fopen("samples.csv","w"); // for (int i=0;i<50;i++) // { // double t; // t = (double)i/10.0f; // pCurve->Sample(t, val); // pLogger->Debug("%f,%f",t,val[0]); // fprintf(fOut,"%f,%f\n",t,val[0]); // } // fclose(fOut); } }