Re:Lossless audio compression with libpng
by thrownaway2424 on Saturday June 14, 2014 @06:21PM
(#7893868)
FLAC works by finding a well-fitting polynomial function and Rice-encoding the residuals, which isn't very different from what you described.
You could make a spectrum first to determine which candidate frequencies to do the wave form subtraction with, the problem is that the waves are typically not sinusoidal in shape. So you're going to have to take a fairly narrow band-pass filter for the dominant frequency, take the output of that filter, subtract it from the input signal and repeat this until you're left with just a bit of noise.
Then you need to compress each of those individually.
Has that been tried before? Would be willing to spend a few evenings hacking on this myself.