(This question relates to Extracting Binary Magnetic-Strip Card Data from raw WAV)
I am extracting the binary sequence from the magnetic strip on a credit card.
As you can see, the signal is degraded clearly in one place. also there is a minor degradation right on the left of the image.
Just using IIR (i.e. $X_{\rm out} = 0.9X_{\rm out_{last}} + 0.1X_{\rm in}$) smooths it, but the resulting signal is not mathematically smooth; if I differentiate the signal a couple of times the noise comes back with a vengeance:
My question is: can I remove the noise in such a way that the derivatives come out clean?
If so, how?
EDIT: Here is a close-up of some damaged waves:
EDIT(2): A couple of approaches I am considering:
- Firstly I could make a taylor approximation of the signal either side of the damaged sector, and blend the approximations together.
- Secondly I could FFT, remove high-frequency components and reverse FFT. I'm going to try that second approach now...