delta = .0001;

H=0:delta:1; %half note

Q=0:delta:.5; %quarter note

dQ=0:delta:.75; %dotted quarter note

E=0:delta:.25; %eight note

EE = sin(2*pi*329.63*E); %eighth note E

EQ = sin(2*pi*329.63*Q); %quarter note E

E3DQ = sin(2*pi*164.81*dQ); %dotted quarter note E3

CE = sin(2*pi*326.63*Q); %eighth note C

CDQ = sin(2*pi*326.63*dQ); %dotted quarter note C

GH = sin(2*pi*392*H); %half note G

G3DQ = sin(2*pi*196*dQ); %dotted quarter note G3

G3H = sin(2*pi*196*H); %half note G3

A3Q = sin(2*pi*220*Q); %quarter note A3

B3Q = sin(2*pi*246.94*Q); %quarter note B3

Bb3E = sin(2*pi*233.08*E); %eighth note Asharp3

notes = [EE EQ EQ CE EQ GH G3H CDQ G3DQ E3DQ A3Q B3Q Bb3E A3Q];

sound (notes,1/delta);

Alumni Liaison

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

Buyue Zhang