view extra/genspecsines3.m @ 13:844d341cf643 tip

Back up before ISMIR
author Yading Song <yading.song@eecs.qmul.ac.uk>
date Thu, 31 Oct 2013 13:17:06 +0000
parents 6840f77b83aa
children
line wrap: on
line source
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);