Re: [LAD] Determining Phase

2011-06-27 Thread Fons Adriaensen
On Mon, Jun 27, 2011 at 08:16:39PM +, Fons Adriaensen wrote: > The way apps like e.g. zita-at1 do this is to estimate the > pitch (fundamental frequency) of the signal and either skip > or jump ahead an integral number of cycles with a crossfade. Correction: skip or jump *back* an integral nu

Re: [LAD] Determining Phase

2011-06-27 Thread Fons Adriaensen
On Mon, Jun 27, 2011 at 02:35:23PM +0200, pshir...@boosthardware.com wrote: > Would this result in some kind of reverb type effect as Fons suggested? One of them would sound like a resonance, it would 'smear out' some frequency bands. Many of them combined could be made to sound like a reverb. Su

Re: [LAD] Determining Phase

2011-06-27 Thread Jörn Nettingsmeier
On 06/27/2011 02:35 PM, pshir...@boosthardware.com wrote: pshir...@boosthardware.com wrote: I'm looking for a way to adjust the phase of a signal rather than the amplitude. Does such a plugin already exist? If not which ladspa plugin would be the most suitable to start from? check out the av

Re: [LAD] Determining Phase

2011-06-27 Thread pshirkey
> pshir...@boosthardware.com wrote: > >> > - Absolute phase response *does* matter. It's quite >> > easy to create e.g. a filter that has a perfectly flat >> > amplitude response, modifies only the phase, and sounds >> > as a e.g. a resonance or even a reverb. You won't hear >> > the relatively har

Re: [LAD] Determining Phase

2011-06-26 Thread Duncan Gray
On the subject of the word Quadrature: The word Quadrature is shorthand for the imaginary component of a complex-valued variable. Furthermore, it is almost exclusively used in the domain of carrier modulated waveforms. The word for the real component is In-Phase. That is why so many texts on t

Re: [LAD] Determining Phase

2011-06-26 Thread Gordon JC Pearce
On Sun, 26 Jun 2011 14:54:48 -0400 gene heskett wrote: > I do not see how a repeatable, and therefore measurable quadrature > component can be developed in a complex, multi-frequency waveform since the > quadrature component is just as frequency dependent as any other method of > measurement.

Re: [LAD] Determining Phase

2011-06-26 Thread Fons Adriaensen
On Sun, Jun 26, 2011 at 02:54:48PM -0400, gene heskett wrote: > I do not see how a repeatable, and therefore measurable quadrature > component can be developed in a complex, multi-frequency waveform since the > quadrature component is just as frequency dependent as any other method of > measur

Re: [LAD] Determining Phase

2011-06-26 Thread gene heskett
On Sunday, June 26, 2011 02:48:01 PM Gordon JC Pearce did opine: > On Sat, 25 Jun 2011 16:23:29 +0200 (CEST) > > pshir...@boosthardware.com wrote: > > Hi, > > > > Can anyone point me to a simple code example for how to determine the > > phase at a specific time in a waveform? > > > > ex. if I h

Re: [LAD] Determining Phase

2011-06-26 Thread Rui Nuno Capela
On 06/26/2011 10:13 AM, pshir...@boosthardware.com wrote: On Sat, 25 Jun 2011 16:23:29 +0200 (CEST), pshir...@boosthardware.com wrote: Hi, Can anyone point me to a simple code example for how to determine the phase at a specific time in a waveform? ex. if I have a sample that is 5 seconds long

Re: [LAD] Determining Phase

2011-06-26 Thread Arnold Krille
On Sunday 26 June 2011 18:05:12 Jörn Nettingsmeier wrote: > On 06/26/2011 05:47 PM, Arnold Krille wrote: > > On Sunday 26 June 2011 11:58:54 Jörn Nettingsmeier wrote: > >> On 06/26/2011 10:50 AM, pshir...@boosthardware.com wrote: > Other than that, I'd make a really cool spectrum analyzer that

Re: [LAD] Determining Phase

2011-06-26 Thread Jörn Nettingsmeier
On 06/26/2011 05:47 PM, Arnold Krille wrote: On Sunday 26 June 2011 11:58:54 Jörn Nettingsmeier wrote: On 06/26/2011 10:50 AM, pshir...@boosthardware.com wrote: Other than that, I'd make a really cool spectrum analyzer that ran the Fourier analysis on two channels, correlated their phases then

Re: [LAD] Determining Phase

2011-06-26 Thread Arnold Krille
On Sunday 26 June 2011 11:58:54 Jörn Nettingsmeier wrote: > On 06/26/2011 10:50 AM, pshir...@boosthardware.com wrote: > >> Other than that, I'd make a really cool spectrum analyzer that ran the > >> Fourier analysis on two channels, correlated their phases then made a > >> +/- line vs. frequency fo

Re: [LAD] Determining Phase

2011-06-26 Thread Gordon JC Pearce
On Sat, 25 Jun 2011 16:23:29 +0200 (CEST) pshir...@boosthardware.com wrote: > Hi, > > Can anyone point me to a simple code example for how to determine the > phase at a specific time in a waveform? > > ex. if I have a sample that is 5 seconds long and want to know the phase > at 2.5 seconds > >

Re: [LAD] Determining Phase

2011-06-26 Thread Fons Adriaensen
On Sun, Jun 26, 2011 at 10:44:33AM +0200, pshir...@boosthardware.com wrote: > I think you understood what I am looking for below. Unfortunately, I can only guess what the context of your question was, and I'd probably be wrong :-( > Does anyone have a code example for this type of filter? The

Re: [LAD] Determining Phase

2011-06-26 Thread Fons Adriaensen
On Sun, Jun 26, 2011 at 11:43:46AM +0200, Jörn Nettingsmeier wrote: > On 06/26/2011 04:17 AM, Fons Adriaensen wrote: >> On Sun, Jun 26, 2011 at 12:22:58AM +0200, Jörn Nettingsmeier wrote: > >> - Phase is related to delay but it is not the same thing. >> Group delay is again something different. Mix

Re: [LAD] Determining Phase

2011-06-26 Thread Erik de Castro Lopo
pshir...@boosthardware.com wrote: > > - Absolute phase response *does* matter. It's quite > > easy to create e.g. a filter that has a perfectly flat > > amplitude response, modifies only the phase, and sounds > > as a e.g. a resonance or even a reverb. You won't hear > > the relatively harmless ph

Re: [LAD] Determining Phase

2011-06-26 Thread Jörn Nettingsmeier
On 06/26/2011 10:50 AM, pshir...@boosthardware.com wrote: So, perhaps any Haas-effect plugin would satisfy Patrick's needs. so this is about panning? that's actually pretty easily done with just a time delay in addition to level difference. unless you want to spread complex sounds out in spac

Re: [LAD] Determining Phase

2011-06-26 Thread Jörn Nettingsmeier
On 06/26/2011 04:17 AM, Fons Adriaensen wrote: On Sun, Jun 26, 2011 at 12:22:58AM +0200, Jörn Nettingsmeier wrote: - Phase is related to delay but it is not the same thing. Group delay is again something different. Mixing up all these is not going to help anyone understand things any better.

Re: [LAD] Determining Phase

2011-06-26 Thread pshirkey
> On Sat, 25 Jun 2011 16:23:29 +0200 (CEST), pshir...@boosthardware.com > wrote: >> Hi, >> >> Can anyone point me to a simple code example for how to determine the >> phase at a specific time in a waveform? >> >> ex. if I have a sample that is 5 seconds long and want to know the >> phase >> at 2.5

Re: [LAD] Determining Phase

2011-06-26 Thread pshirkey
> From the long list of answers, I see lots of speculation about Mr. > Shirkey's question. Some time back he approached me on the work that had > been done a very long time ago on phase-modulation to achieve panning. > He never replied to my subsequent information or queries. Sorry about that. Be

Re: [LAD] Determining Phase

2011-06-26 Thread pshirkey
> On Sun, Jun 26, 2011 at 12:22:58AM +0200, Jörn Nettingsmeier wrote: > >> it seems you have just proven that the maximum duration of any pure tone >> is 1/f. that is quite extraordinary. > > 0.5 / f actually, which is extraextraordinary. > > Both Joern and I have invited the original poster to > e

Re: [LAD] Determining Phase

2011-06-25 Thread Duncan Gray
From the long list of answers, I see lots of speculation about Mr. Shirkey's question. Some time back he approached me on the work that had been done a very long time ago on phase-modulation to achieve panning. He never replied to my subsequent information or queries. I suspect that this questi

Re: [LAD] Determining Phase

2011-06-25 Thread Fons Adriaensen
On Sun, Jun 26, 2011 at 12:22:58AM +0200, Jörn Nettingsmeier wrote: > it seems you have just proven that the maximum duration of any pure tone > is 1/f. that is quite extraordinary. 0.5 / f actually, which is extraextraordinary. Both Joern and I have invited the original poster to explain more

Re: [LAD] Determining Phase

2011-06-25 Thread Emanuel Rumpf
2011/6/26 Gabriel M. Beddingfield : > > *headdesk*.  Yes... should have been the half-amplitude of > the signal...   p = asin( 2*x / A ) > I.e. MAX = A/2 and MIN = -A/2 > ? Try with φ = ∆t * f * 2π(rad) -- φ = 1s * 1Hz * 2π => 2π (rad) φ = 0.5s * 1Hz * 2π => 1

Re: [LAD] Determining Phase

2011-06-25 Thread Gabriel M. Beddingfield
On Saturday, June 25, 2011 05:04:43 pm Emanuel Rumpf wrote: > >> Assuming yes: > >> > >> p = asin( x / A ) > >> > >> Where: > >> > >> A is the amplitude of the sine wave > > you mean the maximal amplitude (-MAX <= x <= +MAX) , I > guess ? *headdesk*. Yes... should have been the half-ampli

Re: [LAD] Determining Phase

2011-06-25 Thread Rui Nuno Capela
On Sat, 25 Jun 2011 16:23:29 +0200 (CEST), pshir...@boosthardware.com wrote: Hi, Can anyone point me to a simple code example for how to determine the phase at a specific time in a waveform? ex. if I have a sample that is 5 seconds long and want to know the phase at 2.5 seconds I'm open to cod

Re: [LAD] Determining Phase

2011-06-25 Thread Folderol
On Sun, 26 Jun 2011 00:22:58 +0200 Jörn Nettingsmeier wrote: > that's where delay becomes "group delay", i.e. the same constant time > delay implies different phase angles depending on frequency, pretty much > arbitrarily large as the frequency rises. Bingo! Which is why it is quite insane for

Re: [LAD] Determining Phase

2011-06-25 Thread Emanuel Rumpf
2011/6/26 Emanuel Rumpf : > since x <= A (always), better: abs( x ) <= abs( A ) > that result is not possible, with that function at least ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux

Re: [LAD] Determining Phase

2011-06-25 Thread Jörn Nettingsmeier
On 06/26/2011 12:04 AM, Emanuel Rumpf wrote: 2011/6/25 Fons Adriaensen: On Sat, Jun 25, 2011 at 01:55:05PM -0500, Gabriel M. Beddingfield wrote: Do you mean... for a very simple sine wave? Assuming yes: p = asin( x / A ) Where: A is the amplitude of the sine wave you mean the maxim

Re: [LAD] Determining Phase

2011-06-25 Thread Emanuel Rumpf
2011/6/25 Fons Adriaensen : > On Sat, Jun 25, 2011 at 01:55:05PM -0500, Gabriel M. Beddingfield wrote: > >> Do you mean... for a very simple sine wave? >> >> Assuming yes: >> >>   p = asin( x / A ) >> >> Where: >> >>   A is the amplitude of the sine wave you mean the maximal amplitude (-MAX <= x <

Re: [LAD] Determining Phase

2011-06-25 Thread Gabriel M. Beddingfield
On Saturday, June 25, 2011 02:49:39 pm Fons Adriaensen wrote: > > p is the phase of the wave in radians (-pi/2 <= p <= > > pi/2) > > And what if the phase is < -pi/2 or > +pi/2 ? then you set phasers to stun. :-p Hey, at least I pointed out the limitation -gabriel _

Re: [LAD] Determining Phase

2011-06-25 Thread Fons Adriaensen
On Sat, Jun 25, 2011 at 01:55:05PM -0500, Gabriel M. Beddingfield wrote: > Do you mean... for a very simple sine wave? > > Assuming yes: > > p = asin( x / A ) > > Where: > > A is the amplitude of the sine wave > x is the value of the sample (-A <= x <= A) > p is the phase of the wave

Re: [LAD] Determining Phase

2011-06-25 Thread Fons Adriaensen
On Sat, Jun 25, 2011 at 04:23:29PM +0200, pshir...@boosthardware.com wrote: > Can anyone point me to a simple code example for how to determine the > phase at a specific time in a waveform? > > ex. if I have a sample that is 5 seconds long and want to know the phase > at 2.5 seconds > > I'm open

Re: [LAD] Determining Phase

2011-06-25 Thread Gabriel M. Beddingfield
On Saturday, June 25, 2011 09:23:29 am pshir...@boosthardware.com wrote: > Hi, > > Can anyone point me to a simple code example for how to > determine the phase at a specific time in a waveform? > > ex. if I have a sample that is 5 seconds long and want to > know the phase at 2.5 seconds > > I'

Re: [LAD] Determining Phase

2011-06-25 Thread Jörn Nettingsmeier
On 06/25/2011 04:23 PM, pshir...@boosthardware.com wrote: Hi, Can anyone point me to a simple code example for how to determine the phase at a specific time in a waveform? ex. if I have a sample that is 5 seconds long and want to know the phase at 2.5 seconds talking about the "phase" at some

[LAD] Determining Phase

2011-06-25 Thread pshirkey
Hi, Can anyone point me to a simple code example for how to determine the phase at a specific time in a waveform? ex. if I have a sample that is 5 seconds long and want to know the phase at 2.5 seconds I'm open to code in any language or a scripted example if such a tool exists. If there is an u