Help with Science Fair Project Involving Audio Compression
Posted: Thu Feb 06, 2014 8:07 pm
I'm conducting a scientific investigation in which I test which factors effect the audio quality from certain genres of music. I need some advice and feedback regarding a method of testing I have explained below. Thank you.
So far, I've tried out the mathematical difference test on one of my favorite Genesis songs. I ripped the song from the CD as a WAV and as a 320 Kbps MP3 and imported them both into Audacity. I aligned the tracks (MP3s have gaps in the beginning and end) and used the "invert" effect on the MP3 track. I exported the two tracks (inverted MP3 + WAV) so that when they got merged together, the inverse MP3 track would cancel out with the frequencies it shared with the WAV track. What I was left with was the "difference," or what the MP3 was missing compared to the WAV. There didn't appear to be much data compared to the MP3, but it was definitely noticeable on playback and on the waveform graph. My next thought was to look at the file sizes of the "difference" track, which I expected to be very small, and the original WAV file, which I expected to be very large. But, for some reason, the difference track has a file size of 25,225,324 bytes and the original, unmodified WAV has 25,225,444 bytes. A difference of only 120 bytes does not seem reasonable based on the results I've gathered. Am I assuming something incorrectly about how file sizes are calculated or am I doing something wrong in Audacity?
Also, what sort of programming could be done to help me with this project? I'm mainly focusing on how compression factors and bit rate affect audio quality.
So far, I've tried out the mathematical difference test on one of my favorite Genesis songs. I ripped the song from the CD as a WAV and as a 320 Kbps MP3 and imported them both into Audacity. I aligned the tracks (MP3s have gaps in the beginning and end) and used the "invert" effect on the MP3 track. I exported the two tracks (inverted MP3 + WAV) so that when they got merged together, the inverse MP3 track would cancel out with the frequencies it shared with the WAV track. What I was left with was the "difference," or what the MP3 was missing compared to the WAV. There didn't appear to be much data compared to the MP3, but it was definitely noticeable on playback and on the waveform graph. My next thought was to look at the file sizes of the "difference" track, which I expected to be very small, and the original WAV file, which I expected to be very large. But, for some reason, the difference track has a file size of 25,225,324 bytes and the original, unmodified WAV has 25,225,444 bytes. A difference of only 120 bytes does not seem reasonable based on the results I've gathered. Am I assuming something incorrectly about how file sizes are calculated or am I doing something wrong in Audacity?
Also, what sort of programming could be done to help me with this project? I'm mainly focusing on how compression factors and bit rate affect audio quality.
