size = CARRIER_FREQ/f*N;
size = (int)(CARRIER_FREQ/f*N);
   void setf(float f) {      count = 0;      size = CARRIER_FREQ/f*N;      weight = new float[size];      for(int i=0; i<size; i++)         weight[i] = sine(i*PI/size);   }