Up/downsampling correctly processed when fourier smoothing the waveform