summaryrefslogtreecommitdiff
path: root/tests/test6/octave1.txt
blob: 616628fd08c1f4ade101f62489e21955dd07aff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function s=son_pur(f,v,d,sr)
	n = 1:(d*sr);
	s = v*sin(2.*pi.*f*n/sr);
endfunction

sr=8000;
f=440;
d=1;
v=0.9;

s=son_pur(f,v,d,sr);
[y,c]=stft(s,128);
c
s2=synthesis(y,c);
sound(s2);