Revision as of 13:39, 1 September 2008 by Dhopper (Talk)

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

Wave Files

Setting up the song

>> delta = 0.00005;
>> t=0:delta:0.5;
>> note1 = sin(2*pi*320*t);
>> t=0:delta:0.25;
>> note2 = sin(2*pi*341*t);
>> note3 = sin(2*pi*384*t);
>> note4 = sin(2*pi*426*t);
>> note5 = sin(2*pi*480*t);
>> t=0:delta:0.13;
>> note5 = sin(2*pi*480*t);
>> t=0:delta:0.25;
>> note6 = sin(2*pi*512*t);
>> fullsong = [note1 note2 note3 note4 note5 note6];
>> sound(fullsong,1/delta);

Playing the song twice as fast

>> sound(fullsong,1/delta*2);

Transforming the song

Playing all of them together

Alumni Liaison

To all math majors: "Mathematics is a wonderfully rich subject."

Dr. Paul Garrett