Y = genspecsines([10.3, 20.6, 30.9], [-10, -13, -16], [0, 0, 0], 1024);
%plot(ifft(Y));
f1=10.3;
f2=20.6;
f3=30.9;
t = [0:1/44100:0.1-1/44100];
x1 = cos(2*pi*f1*t);
x2 = cos(2*pi*f2*t); 
x3 = cos(2*pi*f3*t);
x = x1 + x2+ x3;
plot(x);

