70 likes | 190 Views
Microcomputer Systems I. Sound Unison. By : Daniel Alvarado. Purpose.
E N D
Microcomputer Systems I Sound Unison By: Daniel Alvarado
Purpose For my final project I am going to use the SDRAM. I am uploading 9 files that exceed the limit of the internal memory RAM. I am going to manipulate the output so that a maximum of three files can be output together . Three files where going to be guitar tracks, other three bass files and the remaining three drums files
Audacity This program helped me select a part of audio file that I liked and export is as a wav file with a sampling rate of 44100 Hz. I did this for my guitar, bass and drum tracks. I used music I had in my iTunes library to make this happen and also downloaded songs that only had an instrument playing.
MATLAB Code Composer could only use files with the .dat extension, fortunately our lab instructor, Jacob, had a MATLAB class that could convert wav files to data files and give us the number of samples of the file, which will be the size of the array buffers we will need for the files to be stored in the SDRAM
Instrument Array Buffers We had to tell the compiler that we were going to store the array in the section of the SDRAM called “mySDRAM” also declaring the array with the size of the number of samples obtained from the conversion back in MATLAB. Since I was uploading 9 files I had to create 9 arrays
GEL Files For my project I created 6 slider GEL files. Three of them are the volumes of each instruments and have a range from 0 to a hundred. The remaining three are sliders that changes the track of each instruments and they have a range from 0 to 4
Outputting three files To make this happen I created a series of if and else if statements for each instrument that would result in adding to the output