Text this: Digital coding of waveforms