summaryrefslogtreecommitdiff
path: root/tests/test6/octave1.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test6/octave1.txt')
-rw-r--r--tests/test6/octave1.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test6/octave1.txt b/tests/test6/octave1.txt
new file mode 100644
index 0000000..616628f
--- /dev/null
+++ b/tests/test6/octave1.txt
@@ -0,0 +1,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);
+