Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-11 Thread Ethan Fenn
et...@polyspectral.com> > *Sent:* Thursday, January 11, 2018 12:13 AM > *To:* Benny Alexandar > *Cc:* music-dsp@music.columbia.edu > > *Subject:* Re: [music-dsp] Finding discontinuity in a sine wave. > > Well, starting with the FIR filter I proposed, let's take this equalit

Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-11 Thread Benny Alexandar
isolate a single tone frequency ? -ben From: Ethan Fenn <et...@polyspectral.com> Sent: Thursday, January 11, 2018 12:13 AM To: Benny Alexandar Cc: music-dsp@music.columbia.edu Subject: Re: [music-dsp] Finding discontinuity in a sine wave. Well, starting with t

Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-11 Thread Benny Alexandar
...@music.columbia.edu <music-dsp-boun...@music.columbia.edu> on behalf of Henrik von Coler <vonco...@tu-berlin.de> Sent: Thursday, January 11, 2018 3:48 AM To: music-dsp@music.columbia.edu Subject: Re: [music-dsp] Finding discontinuity in a sine wave. For actual discontinuities, th

Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-10 Thread Henrik von Coler
For actual discontinuities, the derivative should be helpful - G H On 10.01.2018 17:08, Benny Alexandar wrote: Hi, I want to do some time domain analysis on a sine wave signal which is continuously streaming. My objective is to detect any discontinuities such as audio gap, fading, phase

Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-10 Thread gm
n <et...@polyspectral.com> *Sent:* Wednesday, January 10, 2018 10:33 PM *To:* music-dsp@music.columbia.edu *Subject:* Re: [music-dsp] Finding discontinuity in a sine wave. 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(

Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-10 Thread Ethan Fenn
ic-dsp-boun...@music.columbia.edu <music-dsp-bounces@music. > columbia.edu> on behalf of Ethan Fenn <et...@polyspectral.com> > *Sent:* Wednesday, January 10, 2018 10:33 PM > *To:* music-dsp@music.columbia.edu > *Subject:* Re: [music-dsp] Finding discontinuity in a sine wave.

Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-10 Thread Benny Alexandar
...@music.columbia.edu <music-dsp-boun...@music.columbia.edu> on behalf of Ethan Fenn <et...@polyspectral.com> Sent: Wednesday, January 10, 2018 10:33 PM To: music-dsp@music.columbia.edu Subject: Re: [music-dsp] Finding discontinuity in a sine wave. If the sine frequency is f and the sampl

Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-10 Thread Ethan Fenn
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

Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-10 Thread STEFFAN DIEDRICHSEN
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 wrote: > > But if there is a phase discontinuity it will

Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-10 Thread Spencer Russell
t will be > hard to detect.> > -ben > > *From:* Benny Alexandar <ben.a...@outlook.com> *Sent:* Wednesday, > January 10, 2018 10:21 PM *To:* Spencer Jackson; music- > d...@music.columbia.edu *Subject:* Re: [music-dsp] Finding > discontinuity in a sine wave.>

Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-10 Thread Benny Alexandar
com> Sent: Wednesday, January 10, 2018 10:04 PM To: music-dsp@music.columbia.edu Subject: Re: [music-dsp] Finding discontinuity in a sine wave. If the sine frequency is known, perhaps you could use a goertzel filter and compare a average signal power calculation to measure the power of the e

Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-10 Thread Z Eric Zhang
...@music.columbia.edu] On Behalf Of Spencer Jackson Sent: Wednesday, January 10, 2018 11:35 AM To: music-dsp@music.columbia.edu Subject: Re: [music-dsp] Finding discontinuity in a sine wave. If the sine frequency is known, perhaps you could use a goertzel filter and compare a average signal power

Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-10 Thread Eric Brombaugh
Maybe try locking a PLL to the sinewave to get the expected frequency and phase, then look for differences between them? Eric On 01/10/2018 09:08 AM, Benny Alexandar wrote: Hi, I want to do some time domain analysis on a sine wave signal which is continuously streaming. My objective is to

Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-10 Thread Z Eric Zhang
though. -ez From: music-dsp-boun...@music.columbia.edu [mailto:music-dsp-boun...@music.columbia.edu] On Behalf Of STEFFAN DIEDRICHSEN Sent: Wednesday, January 10, 2018 11:14 AM To: music-dsp@music.columbia.edu Subject: Re: [music-dsp] Finding discontinuity in a sine wave. A notch filter would

Re: [music-dsp] Finding discontinuity in a sine wave.

2018-01-10 Thread STEFFAN DIEDRICHSEN
A notch filter would serve you well, if the sine wave doesn’t change its frequency. Steffan > On 10.01.2018|KW2, at 17:08, Benny Alexandar wrote: > > Hi, > > I want to do some time domain analysis on a sine wave signal which is > continuously streaming. > My