A time domain to binary spectra converter