Text this: Spectral analysis of input spike trains by spike-timing-dependent plasticity.