Revision as of 12:56, 19 January 2011 by Wmendonc (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ECE301 homework %Wendell Mendonce

delta = 0.00005;

bps = 112/60;

%Normal HN = 0:delta:2/bps; QN = 0:delta:1/bps; EN = 0:delta:1/(2*bps); DQN = 0:delta:3/(2*bps);

GQ = sin(2*pi*2^((-2)/12)*440*QN); BflatQ = sin(2*pi*2^((1)/12)*440*QN); CDQ = sin(2*pi*2^((3)/12)*440*DQN); CH = sin(2*pi*2^((3)/12)*440*HN); DflatE = sin(2*pi*2^((4)/12)*440*EN);

normal = [GQ,BflatQ,CDQ,GQ,BflatQ,DflatE,CH,GQ,BflatQ,CDQ,BflatQ,GQ]; sound(normal,1/delta) wavwrite(normal,1/delta,'smoke_normal') pause(8)

%SpeedX2

HN_q = 0:delta:(2/bps)*0.5; QN_q = 0:delta:(1/bps)*0.5; EN_q = 0:delta:(1/(2*bps))*0.5; DQN_q = 0:delta:(3/(2*bps))*0.5;

GQ = sin(2*pi*2^((-2)/12)*440*QN*2); BflatQ = sin(2*pi*2^((1)/12)*440*QN*2); CDQ = sin(2*pi*2^((3)/12)*440*DQN*2); CH = sin(2*pi*2^((3)/12)*440*HN*2); DflatE = sin(2*pi*2^((4)/12)*440*EN*2);

fast = [GQ,BflatQ,CDQ,GQ,BflatQ,DflatE,CH,GQ,BflatQ,CDQ,BflatQ,GQ]; sound(fast,1/delta) wavwrite(fast,1/delta,'smoke_fast') pause(8)

%Pitch HN = 0:delta:2/bps; QN = 0:delta:1/bps; EN = 0:delta:1/(2*bps); DQN = 0:delta:3/(2*bps);

GQ = sin(2*2*pi*2^((-2)/12)*440*QN); BflatQ = sin(2*2*pi*2^((1)/12)*440*QN); CDQ = sin(2*2*pi*2^((3)/12)*440*DQN); CH = sin(2*2*pi*2^((3)/12)*440*HN); DflatE = sin(2*2*pi*2^((4)/12)*440*EN);

pitch = [GQ,BflatQ,CDQ,GQ,BflatQ,DflatE,CH,GQ,BflatQ,CDQ,BflatQ,GQ]; sound(pitch,1/delta) wavwrite(pitch,1/delta,'smoke_pitch') pause(8)


[1]% [2] [3]

Alumni Liaison

Basic linear algebra uncovers and clarifies very important geometry and algebra.

Dr. Paul Garrett