A method of compressed sensing of a spectrally-sparse signal within a given spectral band, the received signal being mixed over a sensing frame with a pulse train scrolling at a repetition frequency within this frame, said pulses having a duration shorter than or equal to the inverse of the width of the spectral band and having a spectrum centred on the central frequency of this band, the result of mixing being filtered by means of a low-pass filtering before being sampled to result in complex samples representative of the received signal, said method being characterised in that said repetition frequency is modulated over time for the duration of the sensing frame.