(The code for Homework 1) |
|||
Line 6: | Line 6: | ||
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) |
Revision as of 06:39, 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)