(put code in webpage, more changes to come) |
(spacing) |
||
Line 1: | Line 1: | ||
− | t1 = 0:delta:1/2; | + | t1 = 0:delta:1/2;<br /> |
− | t2 = 0:delta:1; | + | t2 = 0:delta:1;<br /> |
− | t3 = 0:delta:1/3; | + | t3 = 0:delta:1/3;<br /> |
− | t4 = 0:delta:1/4; | + | t4 = 0:delta:1/4;<br /> |
− | t5 = 0:delta:3/4; | + | t5 = 0:delta:3/4;<br /> |
− | tf = 0:delta:2; | + | tf = 0:delta:2;<br /> |
− | A4 = sin(2*pi*220*t1); | + | A4 = sin(2*pi*220*t1);<br /> |
− | B4 = sin(2*pi*247*t1); | + | B4 = sin(2*pi*247*t1);<br /> |
− | C4 = sin(2*pi*262*t1); | + | C4 = sin(2*pi*262*t1);<br /> |
− | D4 = sin(2*pi*294*t1); | + | D4 = sin(2*pi*294*t1);<br /> |
− | E4 = sin(2*pi*330*t1); | + | E4 = sin(2*pi*330*t1);<br /> |
− | F4 = sin(2*pi*349*t1); | + | F4 = sin(2*pi*349*t1);<br /> |
− | G4 = sin(2*pi*392*t1); | + | G4 = sin(2*pi*392*t1);<br /> |
− | A5 = sin(2*pi*440*t1); | + | A5 = sin(2*pi*440*t1);<br /> |
− | B5 = sin(2*pi*494*t1); | + | B5 = sin(2*pi*494*t1);<br /> |
− | C5 = sin(2*pi*523*t1); | + | C5 = sin(2*pi*523*t1);<br /> |
− | D5 = sin(2*pi*587*t1); | + | D5 = sin(2*pi*587*t1);<br /> |
− | E5 = sin(2*pi*659*t1); | + | E5 = sin(2*pi*659*t1);<br /> |
− | F5 = sin(2*pi*698*t1); | + | F5 = sin(2*pi*698*t1);<br /> |
− | G5 = sin(2*pi*784*t1); | + | G5 = sin(2*pi*784*t1);<br /> |
− | G52 = sin(2*pi*784*t2); | + | G52 = sin(2*pi*784*t2);<br /> |
− | C62 = sin(2*pi*1047*t2); | + | C62 = sin(2*pi*1047*t2);<br /> |
− | FS = sin(2*pi*739.989*t1); | + | FS = sin(2*pi*739.989*t1);<br /> |
− | FS6 = sin(2*pi*1479.978*t1); | + | FS6 = sin(2*pi*1479.978*t1);<br /> |
− | B52 = sin(2*pi*494*t2); | + | B52 = sin(2*pi*494*t2);<br /> |
− | E52 = sin(2*pi*659*t2); | + | E52 = sin(2*pi*659*t2);<br /> |
− | C52 = sin(2*pi*523*t2); | + | C52 = sin(2*pi*523*t2);<br /> |
− | B52 = sin(2*pi*494*t2); | + | B52 = sin(2*pi*494*t2);<br /> |
− | E62 = sin(2*pi*1319*t2); | + | E62 = sin(2*pi*1319*t2);<br /> |
− | D62 = sin(2*pi*1175*t2); | + | D62 = sin(2*pi*1175*t2);<br /> |
− | B62 = sin(2*pi*988*t2); | + | B62 = sin(2*pi*988*t2);<br /> |
− | F62 = sin(2*pi*1397*t2); | + | F62 = sin(2*pi*1397*t2);<br /> |
− | G62 = sin(2*pi*1568*t2); | + | G62 = sin(2*pi*1568*t2);<br /> |
− | C63 = sin(2*pi*1047*t3); | + | C63 = sin(2*pi*1047*t3);<br /> |
− | D63 = sin(2*pi*1175*t3); | + | D63 = sin(2*pi*1175*t3);<br /> |
− | E63 = sin(2*pi*1319*t3); | + | E63 = sin(2*pi*1319*t3);<br /> |
− | G53 = sin(2*pi*784*t3); | + | G53 = sin(2*pi*784*t3);<br /> |
− | A63 = sin(2*pi*880*t3); | + | A63 = sin(2*pi*880*t3);<br /> |
− | E53 = sin(2*pi*659*t3); | + | E53 = sin(2*pi*659*t3);<br /> |
− | B53 = sin(2*pi*494*t3); | + | B53 = sin(2*pi*494*t3);<br /> |
− | B63 = sin(2*pi*988*t3); | + | B63 = sin(2*pi*988*t3);<br /> |
− | F63 = sin(2*pi*1397*t3); | + | F63 = sin(2*pi*1397*t3);<br /> |
− | G63 = sin(2*pi*1568*t3); | + | G63 = sin(2*pi*1568*t3);<br /> |
− | C53 = sin(2*pi*523*t3); | + | C53 = sin(2*pi*523*t3);<br /> |
− | G54 = sin(2*pi*784*t4); | + | G54 = sin(2*pi*784*t4);<br /> |
− | E54 = sin(2*pi*659*t4); | + | E54 = sin(2*pi*659*t4);<br /> |
− | E64 = sin(2*pi*1319*t4); | + | E64 = sin(2*pi*1319*t4);<br /> |
− | D64 = sin(2*pi*1175*t4); | + | D64 = sin(2*pi*1175*t4);<br /> |
− | B64 = sin(2*pi*988*t4); | + | B64 = sin(2*pi*988*t4);<br /> |
− | C64 = sin(2*pi*1047*t4); | + | C64 = sin(2*pi*1047*t4);<br /> |
− | G64 = sin(2*pi*1568*t4); | + | G64 = sin(2*pi*1568*t4);<br /> |
− | F64 = sin(2*pi*1397*t4); | + | F64 = sin(2*pi*1397*t4);<br /> |
− | A64 = sin(2*pi*880*t4); | + | A64 = sin(2*pi*880*t4);<br /> |
− | A54 = sin(2*pi*440*t4); | + | A54 = sin(2*pi*440*t4);<br /> |
− | B54 = sin(2*pi*494*t4); | + | B54 = sin(2*pi*494*t4);<br /> |
− | C55 = sin(2*pi*523*t5); | + | C55 = sin(2*pi*523*t5);<br /> |
− | C65 = sin(2*pi*1047*t5); | + | C65 = sin(2*pi*1047*t5);<br /> |
− | E55 = sin(2*pi*659*t5); | + | E55 = sin(2*pi*659*t5);<br /> |
− | C6f = sin(2*pi*1047*tf); | + | C6f = sin(2*pi*1047*tf);<br /> |
− | A6 = sin(2*pi*880*t1); | + | A6 = sin(2*pi*880*t1);<br /> |
− | B6 = sin(2*pi*988*t1); | + | B6 = sin(2*pi*988*t1);<br /> |
− | C6 = sin(2*pi*1047*t1); | + | C6 = sin(2*pi*1047*t1);<br /> |
− | D6 = sin(2*pi*1175*t1); | + | D6 = sin(2*pi*1175*t1);<br /> |
− | E6 = sin(2*pi*1319*t1); | + | E6 = sin(2*pi*1319*t1);<br /> |
− | F6 = sin(2*pi*1397*t1); | + | F6 = sin(2*pi*1397*t1);<br /> |
− | G6 = sin(2*pi*1568*t1); | + | G6 = sin(2*pi*1568*t1);<br /> |
− | p = sin(2*pi*1*t1); | + | p = sin(2*pi*1*t1);<br /> |
sound([G53,E54,C52,E5,G5,C62,p,E63,D64,C62,E5,FS,G52,p,G53,G53,E62,D63,C6,B62,p,A63,B64,C62,C6,G5,E5,C52,p,E5,G53,C52,E5,G5,C62,p,E6,D63,C62,E5,FS,G52,p,G5,G53,E62,D6,C6,B62,p,A6,B63,C62,C6,G5,E5,C5,p,E64,E64,E62,F6,G6,G62,p,F64,E64,D62,E6,F6,F62,p,F6,E62,D64,C6,B62,p,A64,B64,C62,E5,FS,G52,p,G5,C6,C6,C64,B64,A6,A6,A6,D6,F63,E6,D63,C62,B6,p,G53,G53,C62,D63,E63,F63,G62,p,C63,D63,E62,F6,D6,C6f]); | sound([G53,E54,C52,E5,G5,C62,p,E63,D64,C62,E5,FS,G52,p,G53,G53,E62,D63,C6,B62,p,A63,B64,C62,C6,G5,E5,C52,p,E5,G53,C52,E5,G5,C62,p,E6,D63,C62,E5,FS,G52,p,G5,G53,E62,D6,C6,B62,p,A6,B63,C62,C6,G5,E5,C5,p,E64,E64,E62,F6,G6,G62,p,F64,E64,D62,E6,F6,F62,p,F6,E62,D64,C6,B62,p,A64,B64,C62,E5,FS,G52,p,G5,C6,C6,C64,B64,A6,A6,A6,D6,F63,E6,D63,C62,B6,p,G53,G53,C62,D63,E63,F63,G62,p,C63,D63,E62,F6,D6,C6f]); |
Revision as of 20:21, 2 December 2018
t1 = 0:delta:1/2;
t2 = 0:delta:1;
t3 = 0:delta:1/3;
t4 = 0:delta:1/4;
t5 = 0:delta:3/4;
tf = 0:delta:2;
A4 = sin(2*pi*220*t1);
B4 = sin(2*pi*247*t1);
C4 = sin(2*pi*262*t1);
D4 = sin(2*pi*294*t1);
E4 = sin(2*pi*330*t1);
F4 = sin(2*pi*349*t1);
G4 = sin(2*pi*392*t1);
A5 = sin(2*pi*440*t1);
B5 = sin(2*pi*494*t1);
C5 = sin(2*pi*523*t1);
D5 = sin(2*pi*587*t1);
E5 = sin(2*pi*659*t1);
F5 = sin(2*pi*698*t1);
G5 = sin(2*pi*784*t1);
G52 = sin(2*pi*784*t2);
C62 = sin(2*pi*1047*t2);
FS = sin(2*pi*739.989*t1);
FS6 = sin(2*pi*1479.978*t1);
B52 = sin(2*pi*494*t2);
E52 = sin(2*pi*659*t2);
C52 = sin(2*pi*523*t2);
B52 = sin(2*pi*494*t2);
E62 = sin(2*pi*1319*t2);
D62 = sin(2*pi*1175*t2);
B62 = sin(2*pi*988*t2);
F62 = sin(2*pi*1397*t2);
G62 = sin(2*pi*1568*t2);
C63 = sin(2*pi*1047*t3);
D63 = sin(2*pi*1175*t3);
E63 = sin(2*pi*1319*t3);
G53 = sin(2*pi*784*t3);
A63 = sin(2*pi*880*t3);
E53 = sin(2*pi*659*t3);
B53 = sin(2*pi*494*t3);
B63 = sin(2*pi*988*t3);
F63 = sin(2*pi*1397*t3);
G63 = sin(2*pi*1568*t3);
C53 = sin(2*pi*523*t3);
G54 = sin(2*pi*784*t4);
E54 = sin(2*pi*659*t4);
E64 = sin(2*pi*1319*t4);
D64 = sin(2*pi*1175*t4);
B64 = sin(2*pi*988*t4);
C64 = sin(2*pi*1047*t4);
G64 = sin(2*pi*1568*t4);
F64 = sin(2*pi*1397*t4);
A64 = sin(2*pi*880*t4);
A54 = sin(2*pi*440*t4);
B54 = sin(2*pi*494*t4);
C55 = sin(2*pi*523*t5);
C65 = sin(2*pi*1047*t5);
E55 = sin(2*pi*659*t5);
C6f = sin(2*pi*1047*tf);
A6 = sin(2*pi*880*t1);
B6 = sin(2*pi*988*t1);
C6 = sin(2*pi*1047*t1);
D6 = sin(2*pi*1175*t1);
E6 = sin(2*pi*1319*t1);
F6 = sin(2*pi*1397*t1);
G6 = sin(2*pi*1568*t1);
p = sin(2*pi*1*t1);
sound([G53,E54,C52,E5,G5,C62,p,E63,D64,C62,E5,FS,G52,p,G53,G53,E62,D63,C6,B62,p,A63,B64,C62,C6,G5,E5,C52,p,E5,G53,C52,E5,G5,C62,p,E6,D63,C62,E5,FS,G52,p,G5,G53,E62,D6,C6,B62,p,A6,B63,C62,C6,G5,E5,C5,p,E64,E64,E62,F6,G6,G62,p,F64,E64,D62,E6,F6,F62,p,F6,E62,D64,C6,B62,p,A64,B64,C62,E5,FS,G52,p,G5,C6,C6,C64,B64,A6,A6,A6,D6,F63,E6,D63,C62,B6,p,G53,G53,C62,D63,E63,F63,G62,p,C63,D63,E62,F6,D6,C6f]);