Converting an analog signal of varying maximum and minimum values to a series of pulses
You could sample the signal with a microcontroller ADC (or a programmable DSP chip) and do the job of "converting it to digital pulses" in software to suit your needs.