function w = note(f,y,t)

% y is different Fourier coefficients 
 
rate = 10000;
pause = 500;
last = t*rate-pause;
x=(1:last)/rate;
w = zeros(size(x));
for i = 1:length(y)
    w = w + y(i)*sin(f*2*pi*x*i) ;
end
w = w/sum(abs(y));
w = [w,zeros(1,pause)];
end
