QUOTE
Most of the time (at least for pop music), the left and right channels are identical (correct me if I'm wrong).
You are WRONG!
Here's something you can try... With an audio editor you can subtract the left & right channels. When you do this, you will find that there is virtually never any silence (unless you have a "mono" file*). You can do this by inverting one channel and mixing the left & right channels together. Or, some (most?) audio editors have a "vocal elimination" filter that works by subtracting left from right to remove the "center channel" audio.
Audacity (FREE) has a
Vocal Remover filter.
With an audio editor, you can create a L-R file and a L+R file, then add/subtract to re-create the original stereo file, but I don't know if this helps with lossless compression. And, you'd have to take care to avoid rounding errors... It's going to take
more than 16 bits to
losslessly store the sum & difference of a 16-bit file! (Even the difference can go over 16 bits if the channels happen to be out-of-phase at some point in time.)
QUOTE
Is it possible to make audio compression be two pass. Let the first pass to analyze and pick out the parts that are repetitive, and the second pass do the encoding, and only encode the repetitive parts once, and apply it to where ever it needs it.
If the whole chorus is copy-and-pasted, you could take advantage of that. But, repetitive parts are not generally "digitally identical". Rap & pop producers often use "loops", but they usually loop the instruments separately, and when mixed there will be digital differences. I'd
guess that you'd have to search through several hunderd songs before you found one with a few seconds of digitally repeated data.
If you
record (through an analog-to-digital converter) an
identical sound twice, the digital files will be different. This is because you are
sampling the analog signal, and you sample different points on the analog wave each time you digitize... The overall wave shape will be the same, the sound will be the same, but
all of the bytes in the file will be different!
*CDs are always 2-channels. If you can find a mono CD, both channels will be identical, and if you subtract you will get silence!