function [d,r] = readWav(name) %Reads, plays and creates the magnitude spectrum of an input wav file. %Input must be a string, ex. 'music.wav' [d,r] = wavread(name); soundsc(d,r); displayDFT(d, r); end