[music-dsp] cos+img(sin) or... ifft...

Leif - Christian Ringstad leifcr at hekta.org
Mon Mar 31 11:01:00 EST 2003


hehe... stupid me... I should have played a bit more around in matlab...
got locked up on that I needed the i for the phase...
Thanks!!!!

Leif
> Just ditch the "i"--you are already doing it with the cos/sin
>
>
> Leif - Christian Ringstad wrote:
>
>>Hi all...
>>
>>I'm doing this :
>>y = A*cos(k*x/32)+i*B*sin(k*x/32) and so on... where k is from 1 to 32.
>>
>>which is the base of a ifft really...
>>
>>What my problem now is... how to get that imaginary part onto c code..
>>this is an approach that I have thought of :
>>double temp[];
>>for (k = 1 ; k = 32;k++)
>>{
>>temp[k]=A*cos(k*x/32)+i*B*sin(k*x/32)
>>}
>>
>>A and B are variables that come from some earlier parts of the code.
>>
>>The problem then is how to implement the imaginary part, which will be
>>a change of the phase. Anyone that can lead me to a start ?
>>
>>cheers,
>>Leif
>>--------------------
>>drift - hekta.org
>>http://www.hekta.org
>>
>>
>
>
>
> dupswapdrop -- the music-dsp mailing list and website: subscription
> info, FAQ, source code archive, list archive, book reviews, dsp links
> http://shoko.calarts.edu/musicdsp/
> http://aulos.calarts.edu/mailman/listinfo/music-dsp









More information about the music-dsp mailing list