Hi all, I've been trying to zero centre a waveform prior to IFFT. my recent attempts are based on the following code which is producing the waveform below. I don't understand why this isn't working or why there are notches in the sawtooth wave. Is my math incorrect?
The following code: double dZeroStartRadianValue = (((k_dTWOPI * a_dFundamentalFrequency) / a_dSampleRate) * (a_zFFTSize * 0.50) * -1.0); // This zero centers snippet is used to center it.
zeroStartRadianValue = 2*PI*f0/fs*NFFT*0.50*-1.0;