1. A method for generating a reference signal, comprising: receiving an input signal; performing a continuous wavelet transform of the input signal to produce a transformed input signal; generating a scalogram from the transformed input signal; identifying regions in the scalogram corresponding to desired components of the input signal; and generating the reference signal based at least in part on the identified regions.