# Fourier synthesis

I know what I am attempting is not easy but I have a spectrum with peaks at 10Hz 20Hz and 30Hz. I also have various amplitudes at these peaks. I want to recreate my original signal. I initially thought this could be done by adding up sine waves

y(t) = a1sin(2*pi*ff1*t)+a2sin(4*pi*ff1*t)+a3sin(6*pi*ff1*t)


with a1 , a2 and a3 based on the amplitudes of the peaks however, When I recreate my time signal and so this in two axes the trace I get is not what I would expect, where am I going wrong?

• Can you post the image of your spectrum? Are perhaps images of what you get and what you expect? – Phonon Oct 6 '14 at 23:23
• When you mean "spectrum", are you just looking at the squared magnitude, or are you also looking at the phases? – pichenettes Oct 7 '14 at 0:24

$$x(t)=A\sin(2\pi f t+\theta)$$
y(t) = a1*sin(2*pi*ff1*t+ph1)+a2*sin(4*pi*ff1*t+ph2)+a3*sin(6*pi*ff1*t+ph3)