WAV file tools, specifically a compare
Posted: Mon May 14, 2012 6:37 am
I've been looking for a tool to compare wave files (intelligently). I only found one but it doesn't work on WIndows 7. So I am writing my own in C++. Is there an Internet forum to discuss topics like this? Here's what I am doing with it.
Basically I want to test out recording quality. I had trouble transferring music tracks from a SONY MD system into my computer because sometimes I heard "clicks" in the transferred file. I think it had to do with the two digital clocks not being sync'd or dropping sync. So I want to make two recordings and compare. I want the pgm to tell me how identical they are numerically (100% would be every digital sample is identical), and also produce a subtract of the two files so I can hear/see where the glitches are. Obviously you have to align the two files up, i.e. skip leading silence and match up the starting positions. I am doing this by convoling the two files for about 1 second of sound, and then shift the files 1 sample in each direction for about 20,000 samples, and find the maximum value. This is where the two files are most similar.
Anyway, if I compare multiple recordings and they are different, I should be able to spot issues. If they are the same, then I am pretty confident there are no glitches in either recording. I also want to test out a pure digital transfer - from one computer to another thru USB sound boxes that are hooked up digitally. Theoretically there should be no loss at all. Once I verify this then I can try the analogue path and see how poorly it performs. And also test out the analog line-in jack on my computer. Ditto for the analog line out on the USB box, and the computer. So I can see if I am getting my money's worth from the external box. By comparing new files to the original WAV file, I can get a good indication of the quality of the computer's sound system and the USB sound box (I use Focusrite Scarlett 8i6). I also plan on having the program re-compute the two tracks' alignment every second, to see of the recordings have any time skew in them, and convert this to a wave file for viewing the results (in a pgm like Audacity or Reason).
I figure a program like this (it's a command shell pgm now) would be useful to other people, seeing as how I couldn't find anything out there. It seems most useful to test out the quality of recording and playback software and hardware. It will be interesting to see if programs like SCS, Reason, Audacity can all playback a WAV file identically through a digital output. And whether Reason and Audacity can record without any loss through a digital input.
Let me know if you know of any similar tools, or how useful you think such a tool would be. Or if there are forums, websites, where this kind of thing is discussed (I'm sure there are, I just haven't looked).
Basically I want to test out recording quality. I had trouble transferring music tracks from a SONY MD system into my computer because sometimes I heard "clicks" in the transferred file. I think it had to do with the two digital clocks not being sync'd or dropping sync. So I want to make two recordings and compare. I want the pgm to tell me how identical they are numerically (100% would be every digital sample is identical), and also produce a subtract of the two files so I can hear/see where the glitches are. Obviously you have to align the two files up, i.e. skip leading silence and match up the starting positions. I am doing this by convoling the two files for about 1 second of sound, and then shift the files 1 sample in each direction for about 20,000 samples, and find the maximum value. This is where the two files are most similar.
Anyway, if I compare multiple recordings and they are different, I should be able to spot issues. If they are the same, then I am pretty confident there are no glitches in either recording. I also want to test out a pure digital transfer - from one computer to another thru USB sound boxes that are hooked up digitally. Theoretically there should be no loss at all. Once I verify this then I can try the analogue path and see how poorly it performs. And also test out the analog line-in jack on my computer. Ditto for the analog line out on the USB box, and the computer. So I can see if I am getting my money's worth from the external box. By comparing new files to the original WAV file, I can get a good indication of the quality of the computer's sound system and the USB sound box (I use Focusrite Scarlett 8i6). I also plan on having the program re-compute the two tracks' alignment every second, to see of the recordings have any time skew in them, and convert this to a wave file for viewing the results (in a pgm like Audacity or Reason).
I figure a program like this (it's a command shell pgm now) would be useful to other people, seeing as how I couldn't find anything out there. It seems most useful to test out the quality of recording and playback software and hardware. It will be interesting to see if programs like SCS, Reason, Audacity can all playback a WAV file identically through a digital output. And whether Reason and Audacity can record without any loss through a digital input.
Let me know if you know of any similar tools, or how useful you think such a tool would be. Or if there are forums, websites, where this kind of thing is discussed (I'm sure there are, I just haven't looked).