Contents
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);