Line 5: | Line 5: | ||
del=0.001 | del=0.001 | ||
+ | |||
t=0:del:0.1 | t=0:del:0.1 | ||
y=sin(2*pi*330*t)%E | y=sin(2*pi*330*t)%E | ||
+ | |||
sound(y,1/del) | sound(y,1/del) | ||
+ | |||
pause(0.2) | pause(0.2) | ||
+ | |||
y1=sin(2*pi*330*t)%E | y1=sin(2*pi*330*t)%E | ||
+ | |||
sound(y1,1/del) | sound(y1,1/del) | ||
+ | |||
pause(0.2) | pause(0.2) | ||
+ | |||
y2=sin(2*pi*330*t)%E | y2=sin(2*pi*330*t)%E | ||
+ | |||
sound(y2,1/del) | sound(y2,1/del) | ||
+ | |||
pause(0.2) | pause(0.2) | ||
+ | |||
y3=sin(2*pi*396*t)%G | y3=sin(2*pi*396*t)%G | ||
+ | |||
sound(y3,1/del) | sound(y3,1/del) | ||
+ | |||
pause(0.2) | pause(0.2) | ||
+ | |||
y4=sin(2*pi*264*t)%C | y4=sin(2*pi*264*t)%C | ||
+ | |||
sound(y4,1/del) | sound(y4,1/del) | ||
+ | |||
pause(0.2) | pause(0.2) | ||
+ | |||
y5=sin(2*pi*330*t)%E | y5=sin(2*pi*330*t)%E | ||
+ | |||
sound(y5,1/del) | sound(y5,1/del) | ||
+ | |||
pause(0.2) | pause(0.2) | ||
+ | |||
y6=sin(2*pi*396*t)%G | y6=sin(2*pi*396*t)%G | ||
+ | |||
sound(y6,1/del) | sound(y6,1/del) | ||
+ | |||
pause(0.2) | pause(0.2) | ||
+ | |||
y7=sin(2*pi*264*t)%C | y7=sin(2*pi*264*t)%C | ||
+ | |||
sound(y7,1/del) | sound(y7,1/del) | ||
+ | |||
pause(0.2) | pause(0.2) | ||
+ | |||
y8=sin(2*pi*198*t)%Glow | y8=sin(2*pi*198*t)%Glow | ||
+ | |||
sound(y8,1/del) | sound(y8,1/del) | ||
+ | |||
pause(0.2) | pause(0.2) | ||
+ | |||
y9=sin(2*pi*165*t)%Elow | y9=sin(2*pi*165*t)%Elow | ||
+ | |||
sound(y9,1/del) | sound(y9,1/del) | ||
+ | |||
pause(0.2) | pause(0.2) | ||
+ | |||
y10=sin(2*pi*220*t)%Alow | y10=sin(2*pi*220*t)%Alow | ||
+ | |||
sound(y10,1/del) | sound(y10,1/del) | ||
+ | |||
pause(0.2) | pause(0.2) | ||
+ | |||
y11=sin(2*pi*247.5*t)%Blow | y11=sin(2*pi*247.5*t)%Blow | ||
+ | |||
sound(y11,1/del) | sound(y11,1/del) | ||
+ | |||
pause(0.2) | pause(0.2) | ||
+ | |||
y12=sin(2*pi*209*t)%A#low | y12=sin(2*pi*209*t)%A#low | ||
+ | |||
sound(y12,1/del) | sound(y12,1/del) | ||
+ | |||
pause(0.2) | pause(0.2) | ||
+ | |||
y13=sin(2*pi*220*t)%Alow | y13=sin(2*pi*220*t)%Alow | ||
+ | |||
sound(y13,1/del) | sound(y13,1/del) |
Latest revision as of 05:40, 25 June 2009
%Name: Chen Chen %Hw1 for ECE301 %June 25 2009
del=0.001
t=0:del:0.1
y=sin(2*pi*330*t)%E
sound(y,1/del)
pause(0.2)
y1=sin(2*pi*330*t)%E
sound(y1,1/del)
pause(0.2)
y2=sin(2*pi*330*t)%E
sound(y2,1/del)
pause(0.2)
y3=sin(2*pi*396*t)%G
sound(y3,1/del)
pause(0.2)
y4=sin(2*pi*264*t)%C
sound(y4,1/del)
pause(0.2)
y5=sin(2*pi*330*t)%E
sound(y5,1/del)
pause(0.2)
y6=sin(2*pi*396*t)%G
sound(y6,1/del)
pause(0.2)
y7=sin(2*pi*264*t)%C
sound(y7,1/del)
pause(0.2)
y8=sin(2*pi*198*t)%Glow
sound(y8,1/del)
pause(0.2)
y9=sin(2*pi*165*t)%Elow
sound(y9,1/del)
pause(0.2)
y10=sin(2*pi*220*t)%Alow
sound(y10,1/del)
pause(0.2)
y11=sin(2*pi*247.5*t)%Blow
sound(y11,1/del)
pause(0.2)
y12=sin(2*pi*209*t)%A#low
sound(y12,1/del)
pause(0.2)
y13=sin(2*pi*220*t)%Alow
sound(y13,1/del)