Line 1: | Line 1: | ||
+ | %Zachary J. Graber | ||
+ | %ECE 301 HW1 | ||
+ | %PART 1 | ||
+ | |||
+ | clear | ||
+ | clc | ||
+ | delta = 0.00005; | ||
+ | whl = 112/60; %whole note length | ||
+ | |||
+ | %normal play | ||
+ | th = 0:delta:(whl/2); | ||
+ | tq = 0:delta:(whl/4); | ||
+ | te = 0:delta:(whl/8); | ||
+ | tdq = 0:delta:(whl/4+whl/8); | ||
+ | n = zeros(1,(whl/8)/delta);%blank space at end of melodies | ||
+ | |||
+ | g = sin(2*pi*392*tq); | ||
+ | bflat = sin(2*pi*466.16*tq); | ||
+ | c = sin(2*pi*523.25*tdq); | ||
+ | dflat = sin(2*pi*554.37*te); | ||
+ | chalf = sin(2*pi*523.25*th); | ||
+ | |||
+ | part1 = [g,bflat,c,g,bflat,dflat,chalf,g,bflat,c,bflat,g,n]; | ||
+ | |||
+ | %double speed | ||
+ | th = 0:delta:(whl/4); | ||
+ | tq = 0:delta:(whl/8); | ||
+ | te = 0:delta:(whl/16); | ||
+ | tdq = 0:delta:(whl/4+whl/8)/2; | ||
+ | g = sin(2*pi*392*tq); | ||
+ | bflat = sin(2*pi*466.16*tq); | ||
+ | c = sin(2*pi*523.25*tdq); | ||
+ | dflat = sin(2*pi*554.37*te); | ||
+ | chalf = sin(2*pi*523.25*th); | ||
+ | |||
+ | part2 = [g,bflat,c,g,bflat,dflat,chalf,g,bflat,c,bflat,g,n]; | ||
+ | |||
+ | %higher pitch | ||
+ | th = 0:delta:(whl/2); | ||
+ | tq = 0:delta:(whl/4); | ||
+ | te = 0:delta:(whl/8); | ||
+ | tdq = 0:delta:(whl/4+whl/8); | ||
+ | |||
+ | g = sin(4*pi*392*tq); | ||
+ | bflat = sin(4*pi*466.16*tq); | ||
+ | c = sin(4*pi*523.25*tdq); | ||
+ | dflat = sin(4*pi*554.37*te); | ||
+ | chalf = sin(4*pi*523.25*th); | ||
+ | |||
+ | part3 = [g,bflat,c,g,bflat,dflat,chalf,g,bflat,c,bflat,g,n]; | ||
+ | |||
+ | song = [part1, part2, part3]; | ||
+ | wavwrite(song,1/delta,'smoke_on_the_water'); | ||
+ | |||
+ | %PART2 | ||
+ | [beatles, fs] = wavread('Beatles.wav'); | ||
+ | reverse = flipud(beatles); | ||
+ | wavwrite(reverse,fs,'beatles_message') | ||
+ | |||
+ | %To me the reverse message sounds like "Let me on dead man" or "Turn me on dead man" |
Latest revision as of 08:56, 13 January 2011
%Zachary J. Graber %ECE 301 HW1
%PART 1
clear clc delta = 0.00005; whl = 112/60; %whole note length
%normal play th = 0:delta:(whl/2); tq = 0:delta:(whl/4); te = 0:delta:(whl/8); tdq = 0:delta:(whl/4+whl/8); n = zeros(1,(whl/8)/delta);%blank space at end of melodies
g = sin(2*pi*392*tq); bflat = sin(2*pi*466.16*tq); c = sin(2*pi*523.25*tdq); dflat = sin(2*pi*554.37*te); chalf = sin(2*pi*523.25*th);
part1 = [g,bflat,c,g,bflat,dflat,chalf,g,bflat,c,bflat,g,n];
%double speed th = 0:delta:(whl/4); tq = 0:delta:(whl/8); te = 0:delta:(whl/16); tdq = 0:delta:(whl/4+whl/8)/2; g = sin(2*pi*392*tq); bflat = sin(2*pi*466.16*tq); c = sin(2*pi*523.25*tdq); dflat = sin(2*pi*554.37*te); chalf = sin(2*pi*523.25*th);
part2 = [g,bflat,c,g,bflat,dflat,chalf,g,bflat,c,bflat,g,n];
%higher pitch th = 0:delta:(whl/2); tq = 0:delta:(whl/4); te = 0:delta:(whl/8); tdq = 0:delta:(whl/4+whl/8);
g = sin(4*pi*392*tq); bflat = sin(4*pi*466.16*tq); c = sin(4*pi*523.25*tdq); dflat = sin(4*pi*554.37*te); chalf = sin(4*pi*523.25*th);
part3 = [g,bflat,c,g,bflat,dflat,chalf,g,bflat,c,bflat,g,n];
song = [part1, part2, part3]; wavwrite(song,1/delta,'smoke_on_the_water');
%PART2 [beatles, fs] = wavread('Beatles.wav'); reverse = flipud(beatles); wavwrite(reverse,fs,'beatles_message')
%To me the reverse message sounds like "Let me on dead man" or "Turn me on dead man"
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Dimensions | User | Comment | |
---|---|---|---|---|
current | 08:54, 13 January 2011 | (4.24 MB) | Zgraber (Talk | contribs) |
- You cannot overwrite this file.
File usage
The following 38 files are duplicates of this file (more details):
- File:2 b.wav
- File:BackwardBeatlesSong.wav
- File:BackwardsBeatlesSong.wav
- File:Backwards Beatles.wav
- File:Backwards Beatles zbright.wav
- File:BeatlesReversed MichaelJames.wav
- File:Beatles Flipped.wav
- File:Beatles Reverse.wav
- File:Beatles back amelanic.wav
- File:Beatles backwards.wav
- File:Beatles rev.wav
- File:Beatles reverse.wav
- File:Beatles reversed.wav
- File:Beatles sub.wav
- File:Craig Lechlitner 2.wav
- File:Ece301 HW1 part2 Derek Richards.wav
- File:HW1 prob2.wav
- File:Hw1 ECE301S11 Ethan Hall Beatles Backwards.wav
- File:Hw1 ECE301S11 Prof Boutin 2 b.wav
- File:Jmramer Reverse.wav
- File:John Frey ECE301 HW1 PT2.wav
- File:Krishna Beatles Reverse.wav
- File:Kyle H reverse.wav
- File:Mrgardne beatles backwards.wav
- File:Ns beatlesback.wav
- File:Output.wav
- File:Part2.wav
- File:Question2.wav
- File:Rbeatles.wav
- File:Reverse Beatles.wav
- File:Reverse beatles.wav
- File:Reversed.wav
- File:Reversed Beatles.wav
- File:Rgieseck ECE301 HW1 2 b.wav
- File:SeltaeB.wav
- File:Srigney Reversed Beatles.wav
- File:The Beatles (reversed).wav
- File:Trother RevBeatles.wav
The following 2 pages link to this file: