(New page: %Bhakti Khandagale<br>%References used:<br>%Hw1 ECE301S11 Ethan Hall,Hw1_ECE301S11_Jeff_Gaines delta = 0.00005;<br>bps = 112/60;<br>count = 8192;<br>t = 0:delta:3;<br>x = 1/delta;<br>%Pa...)
 
Line 17: Line 17:
 
%Part 2<br>[beatles,x] = wavread('Beatles.wav');<br>sound(beatles, x)<br>Rev_Beatles = flipud(beatles)<br>sound(Rev_Beatles,x)<br>wavwrite(Rev_Beatles, x, 32, 'Part2.wav');  
 
%Part 2<br>[beatles,x] = wavread('Beatles.wav');<br>sound(beatles, x)<br>Rev_Beatles = flipud(beatles)<br>sound(Rev_Beatles,x)<br>wavwrite(Rev_Beatles, x, 32, 'Part2.wav');  
  
%Forward repeated phrase: "Number nine"<br>%Reverse repeated phrase: "The neon deadman"
+
%Forward repeated phrase: "Number nine"<br>%Reverse repeated phrase: "The neon deadman"  
 +
 
 +
<br>[[Media:Part1a.wav]]

Revision as of 11:18, 19 January 2011

%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

Alumni Liaison

Abstract algebra continues the conceptual developments of linear algebra, on an even grander scale.

Dr. Paul Garrett