Refine the code used for detecting AT3x04 waveforms and aligning the
program to decode them.