I have a buffer full of real/imaginary sample values of a signal, and would like to shift the signal in the frequency domain by multiplying a sinusoid.
I see myself with four options:
- some IPP function (I could not find one though)
- manually calculate the result (probably slower than IPP)
- generate the sinusoid in a separate buffer (probably requires lots of memory)
- generate parts of the sinusoid in a separate buffer (requires recalculating the tone buffer)
I'm wondering what would be the best approach here, and/or whether I have just missed that there is a readymade function for frequency shifting a complex signal.