%Bhakti Khandagale
%References used:
%Hw1 ECE301S11 Ethan Hall,Hw1_ECE301S11_Jeff_Gaines

delta = 0.00005;
bps = 112/60;
count = 8192;
t = 0:delta:3;
x = 1/delta;
%Part 1a)

eth = [0:delta:0.26784];
quart = [0:delta:0.5357];
half = [0:delta:1.0714];
dt_quart = [0:delta:0.8036];

q_g = sin(440*2*pi*quart*(2^(-2/12)));
q_bf = sin(440*2*pi*quart*(2^(1/12)));
dq_c = sin(440*2*pi*dt_quart*(2^(3/12)));
e_df = sin(440*2*pi*eth*(2^(4/12)));
h_c = sin(440*2*pi*half*(2^(3/12)));


%Song
tune = [q_g, q_bf, dq_c, q_g, q_bf, e_df, h_c, q_g, q_bf, dq_c, q_bf, q_g];
sound(tune, x)
wavwrite (tune, x, 32, 'part1a.wav');
pause (10)

%Part 1b)
y = x*2;
sound(tune, y)
wavwrite(tune, y, 32, 'part1b.wav');
pause(10)

%Part 1c)
q_g = sin(440*4*pi*quart*(2^(-2/12)));
q_bf = sin(440*4*pi*quart*(2^(1/12)));
dq_c = sin(440*4*pi*dt_quart*(2^(3/12)));
e_df = sin(440*4*pi*eth*(2^(4/12)));
h_c = sin(440*4*pi*half*(2^(3/12)));

%Song
tune = [q_g, q_bf, dq_c, q_g, q_bf, e_df, h_c, q_g, q_bf, dq_c, q_bf, q_g];
sound(tune, y)
wavwrite (tune, y, 32, 'part1c.wav');
pause (10)

%Part 2
[beatles,x] = wavread('Beatles.wav');
sound(beatles, x)
Rev_Beatles = flipud(beatles)
sound(Rev_Beatles,x)
wavwrite(Rev_Beatles, x, 32, 'Part2.wav');

%Forward repeated phrase: "Number nine"
%Reverse repeated phrase: "The neon deadman"


Media:Part1a.wav
Media:Part1b.wav
Media:Part1c.wav
Media:Part2.wav

Alumni Liaison

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

Buyue Zhang