Matlab based music generation program
In this project I used MATLAB to generate discrete sinusoids of one octave of musical notes using the sampling frequency of my choice. I then played back the octave at different multiples of the sampling frequency and observed the change in pitch. I continued by adding commands to control note duration and produce octave shifts without changing the sampling or reconstruction frequency. Lastly, overtones were added to each note, which I used to play back a short piece of music. Save the following matlab codes in the given names and run the file music.m from matlab. The famous "Jingle Bells" written by James Lord Pierpont(1822–1893) and published under the title "One Horse Open Sleigh" in the autumn of 1857 is the music that i have used for demonstration.