del = 0.00001;
t1 = 0:del:0.3; %eighth note
t2 = 0:del:0.15; %sixteenth note
t3 = 0:del:.6;  %quarter note
t4 = 0:del:(1/10000);  %a miniscule rest period
y1 = [sin(2*pi*330*t2), sin(2*pi*t4), sin(2*pi*330*t1), sin(2*pi*t4), sin(2*pi*330*t2), sin(2*pi*t2), sin(2*pi*264*t2),sin(2*pi*t4), sin(2*pi*330*t1), sin(2*pi*t4), sin(2*pi*396*t3), sin(2*pi*t2), sin(2*pi*198*t3), sin(2*pi*t2)];  %measure 1
y2 = [sin(2*pi*264*t1), sin(2*pi*t2), sin(2*pi*198*t2), sin(2*pi*t2), sin(2*pi*165*t1), sin(2*pi*t1), sin(2*pi*220*t1), sin(2*pi*t4), sin(2*pi*247.5*t1), sin(2*pi*t4), sin(2*pi*233.08*t1), sin(2*pi*t4), sin(2*pi*220*t1)];  %measure 2
sound(y,1/del);

Alumni Liaison

Ph.D. 2007, working on developing cool imaging technologies for digital cameras, camera phones, and video surveillance cameras.

Buyue Zhang