Sequential detection of almost-harmonic signals