Reply
 
Thread Tools Display Modes
  #2   Report Post  
Mark
 
Posts: n/a
Default

Well, yes, dispersion is another word for what we are talking about.

Group delay is the derivative of phase.

Dispersion causes non-flat group delay vs frequency which is the same
thing as non-linear phase vs frequency. (Note the term non-linear
here means NOT STRAIGHT LINE, it does NOT refer to non-linear in the
sense that the system is amplitude dependent. These are LTI systems we
are discusssing LTI= (linear Time invariant)

Yes you are correct, a device that has enough dispersion to create a
constant phase shift at all audio frequenices is very strange.

We're getting wrapped up in semantics. I'm done....

Mark

  #3   Report Post  
Randy Yates
 
Posts: n/a
Default

"Mark" writes:

Group delay is the derivative of phase.


Group delay is the derivative of phase with respect to *frequency*.
Frequency is the derivative of phase with respect to *time*.
--
Randy Yates
Sony Ericsson Mobile Communications
Research Triangle Park, NC, USA
, 919-472-1124
  #5   Report Post  
Mike Rivers
 
Posts: n/a
Default


In article writes:

Not quite correct, group delay just defines about the same as time shift.
For a sine wave of a specific frequency this time shift results in a phase
shift, for other frequencies the same time shift result in different phase
shifts. If this time shift or group delay depends on frequency, the effect
is called 'dispersion'. A dispersion such that all frequencies have the
same phase shift is quite a strange phenomen, for this the time shift for
20Hz should be 1000 times the time shift for 20kHz


Don't you realize how bogus this discussion is? Phase is always
relative, but you have to define what the reference is. Let's make
this as simple as we can. You have a complex waveform that's periodic
and contains a fundamental and its second and third harmonic. If they
all start at the same time, we can say they're in phase. If we apply a
delay to this waveform, it's shifted in time, so it's phase relative
to something else hasn't changed, but the frequencies comprising the
waveform are still in phase.

Now, if we pass it through a phase shift network (an all-pass filter),
each of the harmonics will be delayed by a different amount. There are
no longer in phase. Something about the complex waveform will change.

Now if we have a stereo pair of complex waveforms that are different
on each channel but have some relationship none the less - they both
came from the same source - if we delay one with respect to the other,
we'll have a whole bunch of different phase shifts, more than we can
reasonably measure, because they're going to change before we can
write the numbers down. I believe that when someone says "I've shifted
the left channel 90 degrees from the right channel" nearly all the
time, they'll mean that they've created that phase shift at a single
frequency, typically near mid-band, with some sort of a delay.

So first we have to agree on a language,


--
I'm really Mike Rivers )
However, until the spam goes away or Hell freezes over,
lots of IP addresses are blocked from this system. If
you e-mail me and it bounces, use your secret decoder ring
and reach me he double-m-eleven-double-zero at yahoo


  #10   Report Post  
Mark
 
Posts: n/a
Default

Yes, agreed.

thank you for the clarification

Mark



  #15   Report Post  
Randy Yates
 
Posts: n/a
Default

(Mike Rivers) writes:

In article
writes:

My point was two-fold:

a) phase is used differently in different contexts


That was my point, too. It's used correctly in some contexts and
incorrectly in others.


The two contexts I was alluding to are both "correct," just different.

and the
"derivative" in one context gives you a completely different
quantity than the derivative in the other.


I assume you're talking about the mathematical derivitive, the change
with respect to time.


Not all "mathematical" derivatives are with respect to time, but
they are all with respect to "something," i.e., some specific
variable.

I'm not sure of the significance of this on the
practical level. Enlighten me if you can.


In one context (the one we're primarily discussing here), "phase" is
the phase response of a system as a function of frequency f, which
I'll denote as phi(f). In this context, the derivative of phi(f) with
respect to f is related to the group delay G(f),

G(f) = -(1/(2*pi)) * (d phi(f) / df).

Note that the units of G(f) are seconds.

In another context, "phase" is the argument of a sinusoid as a
function of time, which I'll denote as theta(t). For example,
the sine wave

x(t) = sin(2*pi*f*t + a)

where f is the frequency of the sinusoid, t is time, and a is
a constant, has a time-varying phase of

theta(t) = 2*pi*f*t + a.

The derivative of theta(t) with respect to t is the frequency
of the sine wave,

d theta(t) / dt = 2*pi*f,

in radians per second.

Note that in both contexts I'm using radians as the unit of phase
rather than degrees.

b) stating that A is a derivative of a function B is, generally,
useless unless you state which variable the derivative is taken by.


Yup, just like stating that the phase shift is 90 degrees without
knowing what's 90 degrees different than what, and in the case of a
non-repetitive waveform, when.


The terminology is well-defined and the concepts well-understood
within the discipline of electrical engineering. The term "phase
shift" means the shift, or change, in phase a signal undergoes
when it is processed by a linear, time-invariant system H(f). It
is a function of frequency.

In linear system theory you learn that phase shift does not depend on
the signal but only the system, and in fact the phase shift is
precisely the phase response phi(f) of the system,

phi(f) = angle(H(f)),

where "angle(z)" denotes the angle, in radians, of the complex number
z, i.e., it is the "phi" in the polar form of the complex number z,

z = r * exp(j*phi).

So to say that a signal undergoes a 90 degree (or pi/2) phase
shift is to say that it passes through a system which has a phase
response of 90 degrees and unity magnitude at all frequencies, i.e.,
the transfer function H(f) = exp(sgn(f)*j*pi/2).
--
Randy Yates
Sony Ericsson Mobile Communications
Research Triangle Park, NC, USA
, 919-472-1124


  #16   Report Post  
Mike Rivers
 
Posts: n/a
Default


In article writes:

In one context (the one we're primarily discussing here), "phase" is
the phase response of a system as a function of frequency f, which
I'll denote as phi(f). In this context, the derivative of phi(f) with
respect to f is related to the group delay G(f),


What's the phase response? The phase of the output relative to the
input?

In another context, "phase" is the argument of a sinusoid as a
function of time, which I'll denote as theta(t). For example,
the sine wave

x(t) = sin(2*pi*f*t + a)

where f is the frequency of the sinusoid, t is time, and a is
a constant, has a time-varying phase of

theta(t) = 2*pi*f*t + a.

The derivative of theta(t) with respect to t is the frequency
of the sine wave,

d theta(t) / dt = 2*pi*f,

in radians per second.

Note that in both contexts I'm using radians as the unit of phase
rather than degrees.

b) stating that A is a derivative of a function B is, generally,
useless unless you state which variable the derivative is taken by.


Yup, just like stating that the phase shift is 90 degrees without
knowing what's 90 degrees different than what, and in the case of a
non-repetitive waveform, when.


The terminology is well-defined and the concepts well-understood
within the discipline of electrical engineering. The term "phase
shift" means the shift, or change, in phase a signal undergoes
when it is processed by a linear, time-invariant system H(f). It
is a function of frequency.

In linear system theory you learn that phase shift does not depend on
the signal but only the system, and in fact the phase shift is
precisely the phase response phi(f) of the system,

phi(f) = angle(H(f)),

where "angle(z)" denotes the angle, in radians, of the complex number
z, i.e., it is the "phi" in the polar form of the complex number z,

z = r * exp(j*phi).

So to say that a signal undergoes a 90 degree (or pi/2) phase
shift is to say that it passes through a system which has a phase
response of 90 degrees and unity magnitude at all frequencies, i.e.,
the transfer function H(f) = exp(sgn(f)*j*pi/2).


Oh, I give up. What you write is probably correct, and I understand
your tutorials about the meaning of words, but I see no connection
with practical audio systems whatsoever.

Can you answer these three questions:

1. What physical device can be used to apply a 90 degree phase shift
to a complex audio signal? You can ignore anything below 20 Hz and
above 20 kHz.

2. How you know you've accomplished it? (how would you measure it?)

3. What change would you expect to hear as a result of this phase
shift if the content was, say, human
speech?



--
I'm really Mike Rivers )
However, until the spam goes away or Hell freezes over,
lots of IP addresses are blocked from this system. If
you e-mail me and it bounces, use your secret decoder ring
and reach me he double-m-eleven-double-zero at yahoo
  #17   Report Post  
Randy Yates
 
Posts: n/a
Default

(Mike Rivers) writes:

In article
writes:

In one context (the one we're primarily discussing here), "phase" is
the phase response of a system as a function of frequency f, which
I'll denote as phi(f). In this context, the derivative of phi(f) with
respect to f is related to the group delay G(f),


What's the phase response? The phase of the output relative to the
input?


Hi Mike,

Yes, that is correct.

"Phase response" is a property of a system, not a signal.
Using the notation I introduced above, the phase response
of a system, phi(f), is related to the time delay T(f) of the
signal through the system at frequency f by the following:

T(f) = phi(f)/(2*pi*f),

where T(f) is in seconds. In other words, the phase response of a
system provides, indirectly, the frequency-dependent delay through the
system.

Oh, I give up. What you write is probably correct, and I understand
your tutorials about the meaning of words, but I see no connection
with practical audio systems whatsoever.


No problem. Sorry if I'm failing to connect with you.

Can you answer these three questions:


Good questions! Let me try to answer:

1. What physical device can be used to apply a 90 degree phase shift
to a complex audio signal? You can ignore anything below 20 Hz and
above 20 kHz.


A PC with a soundcard and some software. I don't know of a Hilbert
transformer that you can buy as a single component, but that doesn't
mean one couldn't be built.

Let me emphasize that the phase response is a property of a *system*,
NOT a signal. So if the system has a 90 degree response at all
frequencies, then that characteristic is going to be imparted to ALL
signals that are passed through it, complex or otherwise.

In other words, you needn't consider a "complex" audio signal to
validate the system - a simple sine wave sweep will do.

2. How you know you've accomplished it? (how would you measure it?)


One easy way would be to connect a sine wave signal generator as an
input into the system. Connect the output of the system into a scope
and Y the output of the signal generator into the X input of the
scope. Place the scope into X-Y mode (ala Lissajous patterns). Then
at any one frequency, you should see a circle displayed on the scope
because the output and input are 90 degrees apart. The geometry should
remain a circle as you sweep the sine wave generator across the
frequency band.

3. What change would you expect to hear as a result of this phase
shift if the content was, say, human
speech?


Listen for yourself:

http://www.uspsdata.org/OurHouse90.wav
--
% Randy Yates % "I met someone who looks alot like you,
%% Fuquay-Varina, NC % she does the things you do,
%%% 919-577-9882 % but she is an IBM."
%%%% % 'Yours Truly, 2095', *Time*, ELO
http://home.earthlink.net/~yatescr
  #18   Report Post  
Mark
 
Posts: n/a
Default



3. What change would you expect to hear as a result of this phase
shift if the content was, say, human
speech?


Listen for yourself:

http://www.uspsdata.org/OurHouse90.wav
--


I think I heard a change in the stereo image indicating you changed the
phase of one channel relative to the other, correct?

Mark

  #20   Report Post  
Randy Yates
 
Posts: n/a
Default

"Mark" writes:

3. What change would you expect to hear as a result of this phase
shift if the content was, say, human
speech?


Listen for yourself:

http://www.uspsdata.org/OurHouse90.wav
--


I think I heard a change in the stereo image indicating you changed the
phase of one channel relative to the other, correct?


Yup - happens about halfway through the clip.
--
% Randy Yates % "Remember the good old 1980's, when
%% Fuquay-Varina, NC % things were so uncomplicated?"
%%% 919-577-9882 % 'Ticket To The Moon'
%%%% % *Time*, Electric Light Orchestra
http://home.earthlink.net/~yatescr


  #21   Report Post  
Randy Yates
 
Posts: n/a
Default

"David Morgan \(MAMS\)" writes:

"Randy Yates" wrote in message ...
(Mike Rivers) writes:

In article
writes:

In one context (the one we're primarily discussing here), "phase" is
the phase response of a system as a function of frequency f, which
I'll denote as phi(f). In this context, the derivative of phi(f) with
respect to f is related to the group delay G(f),


Listen for yourself:

http://www.uspsdata.org/OurHouse90.wav


Wow man, where did you get the MXR phaser ?


;-)


Ha! Is that what it was? Funny, I thought it was Adobe Audition!
--
% Randy Yates % "Though you ride on the wheels of tomorrow,
%% Fuquay-Varina, NC % you still wander the fields of your
%%% 919-577-9882 % sorrow."
%%%% % '21st Century Man', *Time*, ELO
http://home.earthlink.net/~yatescr
  #22   Report Post  
Mike Rivers
 
Posts: n/a
Default


In article writes:

"Phase response" is a property of a system, not a signal.


Exactly - so you can't talk about it in isolation. But a "system" can
be two signals generated by one or more black boxes.

In other words, the phase response of a
system provides, indirectly, the frequency-dependent delay through the
system.


Right. This is what I've always described as "group delay", the group
being the entire collection of frequencies within the waveform. There
is no single number because, as you say, each frequency gets its own
little delay unit in the big black box model. I could have been using
the term incorrectly all my life (which probably is a total of about
five times in more than 40 years of engineering). If "group delay" is
the length of time between when the leader of the pack goes in to when
it comes out, that's just plain "delay" in my book.

1. What physical device can be used to apply a 90 degree phase shift
to a complex audio signal? You can ignore anything below 20 Hz and
above 20 kHz.


Let me emphasize that the phase response is a property of a *system*,
NOT a signal. So if the system has a 90 degree response at all
frequencies, then that characteristic is going to be imparted to ALL
signals that are passed through it, complex or otherwise.

In other words, you needn't consider a "complex" audio signal to
validate the system - a simple sine wave sweep will do.


A "simple sine wave sweep" isn't a simple waveform. A series of sine
waves that remain stable long enough to ignore the start/stop effects
would suffice. If you could put in 1 kHz and get it out .25 msec later
(ignoring the fact that you can't tell one cycle from another and
might have 90 + multiples of 360 degree phase sheift), then put in
a 2 kHz sine wave and get it out .125 msec later, that would be a
start.

2. How you know you've accomplished it? (how would you measure it?)


One easy way would be to connect a sine wave signal generator as an
input into the system. Connect the output of the system into a scope
and Y the output of the signal generator into the X input of the
scope. Place the scope into X-Y mode (ala Lissajous patterns). Then
at any one frequency, you should see a circle displayed on the scope
because the output and input are 90 degrees apart. The geometry should
remain a circle as you sweep the sine wave generator across the
frequency band.


That'll do it.

3. What change would you expect to hear as a result of this phase
shift if the content was, say, human
speech?


Listen for yourself:

http://www.uspsdata.org/OurHouse90.wav

Not knowing what the original sounded like, it's hard to guess the
change, but thanks for the example. It sounds a bit like incoherent
stereo, which the original may well have been considering the era of
the recording. Did you do this with a math program?


--
I'm really Mike Rivers )
However, until the spam goes away or Hell freezes over,
lots of IP addresses are blocked from this system. If
you e-mail me and it bounces, use your secret decoder ring
and reach me he double-m-eleven-double-zero at yahoo
  #23   Report Post  
Bob Cain
 
Posts: n/a
Default



Mike Rivers wrote:

Not knowing what the original sounded like, it's hard to guess the
change, but thanks for the example. It sounds a bit like incoherent
stereo, which the original may well have been considering the era of
the recording. Did you do this with a math program?


Mike, here is an 8k, 32 bit float Hilbert transformer as
generated by the hilbert() function of Matlab. If you have
any DAW with convolution, it can be convolved with a stereo
signal to hear the effect.


Bob
--

"Things should be described as simply as possible, but no
simpler."

A. Einstein
  #24   Report Post  
Bob Cain
 
Posts: n/a
Default



Bob Cain wrote:


Mike Rivers wrote:

Not knowing what the original sounded like, it's hard to guess the
change, but thanks for the example. It sounds a bit like incoherent
stereo, which the original may well have been considering the era of
the recording. Did you do this with a math program?



Mike, here is an 8k, 32 bit float Hilbert transformer


'Where is "here"', you may well ask. Sorry, I was in a
hurry to get out the door and forgot the link:

http://www.arcanemethods.com/Hilbert.wav

Note that this filter has a fixed 4096 sample delay plus the
90 degree phase shift at all frequencies. It is not
accurate at the extremal low frequencies and the extremal
high frequencies and that is a consequence of it being a
finite length approximation to the real thing.


Bob
--

"Things should be described as simply as possible, but no
simpler."

A. Einstein
  #26   Report Post  
Bob Cain
 
Posts: n/a
Default



Mike Rivers wrote:

Thanks for the effort. Bob, but I have just the faintest clue about
what you're talking. I have no idea what to do with whatever it is,
wherever it is. Hopefully it will be useful to someone with the right
smarts and software.


If you have Adobe Audition, for example, there is a builtin
convolution function (or plugin.) In Audition you open the
..wav file that contains the filter, invoke the convolution
function, and tell it to load the active file into itself
and then exit the function. You can then convolve that
filter against any other files you want to by reinvoking the
convolution function and telling it to convolve whatever is
loaded into it with whatever the currently active file is.
This is one way of employing filters that aren't native to
the app, such as the Hilbert transform I linked to.

If you have a way of generating the finite impulse response
of any filter, you can load it into the convolution function
and use that to filter audio files.

Not sure if this helps any but...


Bob
--

"Things should be described as simply as possible, but no
simpler."

A. Einstein
  #27   Report Post  
Ron Capik
 
Posts: n/a
Default

Bob Cain wrote:

Mike Rivers wrote:

Thanks for the effort. Bob, but I have just the faintest clue about
what you're talking. I have no idea what to do with whatever it is,
wherever it is. Hopefully it will be useful to someone with the right
smarts and software.


If you have Adobe Audition, for example, there is a builtin
convolution function (or plugin.)


...snip..

You can also use Acoustic Mirror in Sound Forge...

Later...

Ron Capik
--

PS: Was that a transform of an impulse or of a bandwidth
limited impulse?



  #28   Report Post  
Bob Cain
 
Posts: n/a
Default



Ron Capik wrote:
Bob Cain wrote:
If you have Adobe Audition, for example, there is a builtin
convolution function (or plugin.)



...snip..

You can also use Acoustic Mirror in Sound Forge...


Right.


Later...

Ron Capik
--

PS: Was that a transform of an impulse or of a bandwidth
limited impulse?


The input to hilbert() was one 0 dB sample with 8192 points
requested as output. The bandwidth of the signal to be
sampled and transformed should be limited, as usual, to fs/2.


Bob
--

"Things should be described as simply as possible, but no
simpler."

A. Einstein
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
90 degree phase offset in CoolEdit Bob Pit Pro Audio 145 March 20th 05 09:35 AM
90 degree phase offset in CoolEdit Bob Pit General 96 March 17th 05 02:32 AM
Doppler Distortion - Fact or Fiction Bob Cain Pro Audio 266 August 17th 04 06:50 AM
Transient response of actively filtered speakers Carlos Tech 64 November 26th 03 05:44 PM
Negative/Positive Phase Shift in a Transformer Chris Hornbeck Pro Audio 4 July 10th 03 03:09 AM


All times are GMT +1. The time now is 11:57 PM.

Powered by: vBulletin
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 AudioBanter.com.
The comments are property of their posters.
 

About Us

"It's about Audio and hi-fi"