Delay

Delay, Andy Wehmeyer
How precisely do we need to measure delays for a one seat system?
I have an analyzer in my PC that can output two channels and analyze two channels. Below, the RTA (on the right) can also display both channels, the sum of the two channels or the difference between the two channels.
So, I have the generator set to play MONO pink noise, which is exactly the same in both channels. So, since it’s exactly the same and we’re adding the two channels together, a phase problem will appear as a dip in the response.
In this analyzer, I can also input a time difference between the channels. This is really helpful in mocking up what happens if we don’t measure correctly.

You can see that setting here:
This pink noise isn’t perfectly flat at high frequency and you can see easily here that the two channels have the same response.
What if we miss by a little more than an inch?
Now we have a phase problem at 20kHz. We’ve just created a comb filter, but it begins at 20kHz, so we only see the base of the comb—half of the first dip. All of the other ones would be to the right, but since we can’t hear above 20kHz (and many of us can’t even hear 20k), they don’t matter.
Now…what are the chances that the point to which we measured precisely corresponds to the point perfectly in between our two ears? What if we’re off to the left or the right by 1/4”
What happens when we move our head? We move our heads all the time.
So if we measure within 1/4, we get a perfect sum. If we miss by 1/2”, we lose some 20kHz.

OK. So if we miss by 1/2” we can maybe hear a frequency response problem in the tweeters. How about the midbass?
What if our midbass has a 24dB/oct low pass filter at 300Hz?
Will we hear that 1/2” error at 20k in our midbass?
How big would the error have to be to show up in our midbass? How big would it have to be to create a dip at 300Hz?
Let’s see.
1.5mS would create a comb filter that starts at about 300Hz.

How many inches is 1.5mS? 12 x 1132 x 0.0015S = 20”.
20” would create a problem at 300.

We really need the midbass not to be affected at all and we’re crossing at 24dB/ oct so we need to have no problems below 600Hz. How close do we have to get?
Within 10” would probably do.
But if we wanted to be really persnickety about it, we could measure to within about 5”.
Because there’s no phase cancellation now in the band of frequencies that our left and right midbass are going to play. None.

Let’s say you were remodeling your house—well, you were replacing one door in your house and home depot was out of prehung doors and you don’t want to replace the door frame anyway because you grew up in this house and the door frame is where your mom made the marks each year to show how tall you were. Can’t remove that.
What device would you use to measure the opening of the door if you were going to cut some wood for a new door?
How close do you have to get in order for the door to work? Better than 5”? If the opening is 84” x 32” can you do it with a tape measure?
What if you’re 5” off? What if you cut 89” x 27”? Will there be a problem?
A bathroom door has to be measured MUCH more precisely than your midbass.
That’s 1.35”
So, a bathroom door has to be measured more precisely than a midrange.
The resolution of the delay settings in DSPs depends on the sample rate of the DSP because delay works by storing and releasing samples. The smallest increment is ONE SAMPLE.
At 48k, one sample is 1/48000 or 0.0208 milliseconds. We’re going to round that to 0.02mS. That’s 0.00002 Seconds.
OK. Now, since sound travels at about 1132 feet per second, it travels at 13,584” per second (we multiplied by 12).
Now, we can figure out how long a sine wave is pretty easily.
We can divide 13,584” by the frequency for which we want to know the wavelength and voila!
13,584 / 20,000 = 0.68” = 43/64”
So, a 20kHz wave is a little less than 3/4” long.
At 48,000 Hz, one sample is 1/48,000 x 13584” = 0.29”
So, the smallest amount by which we can delay a signal is equal to 0.29” for a DSP that samples at 48k.
Get it?
OK. Now lets say we measure from the microphone to our tweeters with our tape measure and we get it exactly right. If that happens, there’s no error and our tweeters will be in phase (not counting reflections) and our pink noise from our speakers will sum together perfectly.
Like this:
Nothing happens. No phase errors in the audio band. None.
I wrote this because I suggest setting delays for distance and then using the level controls for the channels to set the position of the center image if it needs to be moved slightly.
Someone responded that if the levels matched perfectly at the mic and so did the frequency response then that was perfect and the problem must be the delay.
And the tape measure isn’t good enough because he can hear a change of 0.03mS EVEN on his tweeters.
And I assume that means that if you can hear such a small error in the tweeters, then it must be even more important for lower frequencies where we hear phase much more easily. And this is exactly backwards.
We do hear phase more easily at lower frequencies, but there has to be enough of a phase shift for it to make a difference—for that phase shift to cause enough cancellation for it to matter —either in terms of imaging or in frequency response.
So if, at the end, we are going to listen and make some small adjustments by ear, why would we assume that it’s better to futz around with the delay than the level?
We know that delay corrects adequately for distance and that the arrival of sound directly from the speaker is always earlier than any reflection. We also know that
the microphone and the analyzer cannot distinguish between the direct sound and reflected sound adequately inside a car because the reflections arrive very soon after the initial sound.
And we hear the direct sound from the speaker as the location of the speaker and the reflections spread our perception of the origin.
So, there’s a lot more room for our measurement of level to correlate more poorly with what we hear than our measurement of distance.
And that’s why I suggest using level rather than delay to center the image at the end of the process.