Detection of linear modulations in the presence of strong phase and frequency instabilities