If the sine frequency is f and the sample rate is sr: Let C = cos(2*pi*f/sr)
For each sample compute: y(t) = x(t) - 2*C*x(t-1) + x(t-2) y(t) should be 0 for every t... if not it indicates a discontinuity. This is just an FIR filter with a zero at the given frequency. -Ethan On Wed, Jan 10, 2018 at 11:58 AM, STEFFAN DIEDRICHSEN <sdiedrich...@me.com> wrote: > With any phase discontinuity, a spectral discontinuity is delivered for > free. So, the notch filter will have an output, a PPL would need to > re-sync, etc. > > Steffan > > > On 10.01.2018|KW2, at 17:51, Benny Alexandar <ben.a...@outlook.com> wrote: > > But if there is a phase discontinuity it will be hard to detect. > > > > _______________________________________________ > dupswapdrop: music-dsp mailing list > music-dsp@music.columbia.edu > https://lists.columbia.edu/mailman/listinfo/music-dsp >
_______________________________________________ dupswapdrop: music-dsp mailing list music-dsp@music.columbia.edu https://lists.columbia.edu/mailman/listinfo/music-dsp