Phase adjustment plugin????

  • Thread starter Thread starter ebeam
  • Start date Start date
E

ebeam

New member
OK, so there is this little box put out by Little Labs (http://www.littlelabs.com/ibp.html) that allows you to continuously adjust the phase of a signal. I find this to be a great idea and a tool that could prove very useful. I was wondering if a DAW plugin exists that can do the same thing. It seems to me that the principle of the device is fairly straight forward and someone should be able to create a dsp version. Of course, latency and such would likely be very critical. Any ideas?
 
..it's a lot cheaper to zoom in and slide the wav over to get it in sync :)
 
Yup, VERY easy to do in a DAW. I do on drums, bass guitars that are DI'ed and mic'ed together, and any stereo mic'ed application.

Ed
 
Ah, yes I do that too, but its not the same thing. Time and phase ARE related, but delaying one track is definitely not the same thing that this box does. For example, if you use 2 mics on a guitar cab - one up close on the speaker and one a couple feet away - part of the reason it sounds good is the time delay between the two mics. If you shift them in a DAW, you negate that effect, but if you just change the phase of one of the mics you can compensate for comb fitering and such and preserve the time delay between the mics. There are also other problems with sliding tracks in a DAW (think about time and frequency relationships).
 
Here is a visual example of what I mean by time/frequency relationships.

So, most musical sounds are made up of a combination of frequencies. When you slide track around in DAW, you are pretty much looking at the low frequencies, since they will dominate the visual representation of the waveform. In this example, you have one mic at A and another at B (with time/distance increasing from left to right). So, you shift one of the waveforms over in your DAW so the low frequency element lines up and is visually in phase but the phase relationship between Signal A and Signal B for the high frequency is very different and will not necessarily be in phase. What you need to do is change the phase across the frequency spectrum (it WILL be different for different frequencies)and the IBP box is supposed to do this.

BTW, I am by no means an expert, so if you find flaw in my logic feel free to point it out.
 

Attachments

  • time_phase.webp
    time_phase.webp
    9.5 KB · Views: 189
Sorry friend, in this case, time and phase ARE totally related.

If you used two mic's to record a guitar amp, and adjusted their placement to have a good relative phase, you would have to move the mic back and forth to do so. That is reality. Using a DAW to move one of the mic's back and forth is the most reasonable way to correct phase problems after it has been tracked. The box you are referring to more than likely just provides a slight delay to the signal that passes through it. Indeed, the mic MIGHT sound a little different if you placed it 1mm farther back from the source while tracking it, and that could help alleviate phase issues. But the fact is that there is no other way to adjust phase EXCEPT with time alignment. Again, I see no other way that that hardware box you are referring to could go about any phase adjustment WITHOUT providing a time delay to the sound.

Distance is distance. Phase is phase. They are related when the same source has two mic's on it. If you want the effect of the "far away" mic to have a "better" relative phase to the close mic, one of the mics HAS to move. Whether you do this manually while tracking, or doing a slight time shift of one of the mics is up to you. Shifting the audio in the time align will of course still keep the "sound" of the mic the same, which will sound different than moving the mic to get a better phase relationship. But again, shifting it slightly in a DAW is no different than using that box you refer to. Thank about it and it will make sense.


Ed
 
Yes, time and phase ARE related but are definitely NOT interchangeable. The IPB box is not a delay. Read the website - he goes into more detail.
 
The other thing that is at play here too is that the "far away" mic is going to pick up lower frequencies better, thus, lower frequencies will be more predominant in the sound. That is just the way it is, and NOTHING is going to change THAT relationship.

If you don't like the sound of two mic's together on the same source, then you don't like the sound of it. There is no way that the relative phase of each mic is going to be the same across the whole frequency spectrum because each sound has very different characteristics. Either it works well for you and give you the sound you want, or it doesn't. There is no "magic box" that will "correct" phase relationship between two totally different sounding sounds. What would be the point? Sometimes, it is the fact that some of the frequency spectrum is OUT OF PHASE that delivers the sound you WANT!

Ed
 
ebeam said:
Yes, time and phase ARE related but are definitely NOT interchangeable. The IPB box is not a delay. Read the website - he goes into more detail.

I read nothing there that suggests it DOESN'T delay the signal, and I suspect in reality, it does in some way. Matters little though. What they do with that box is easily done with time alignment. If you like the two positions of your mics, and in a DAW, you adjust the time alignment of either mic, you can achieve EXACTLY the same effect of that box.

Ed
 
Read the pdf - http://www.littlelabs.com/IBPMAN.pdf - it specifically addresses this issue.

Not trying to turn this into a pissing match, but the physics of sound just doesn't agree with what you are talking about.

The fact of the matter is that your ears ARE going to tell you what sounds good. This is not some magic fixit box, but a tool that can be used along with time delay, mic position, etc to get the sound you want. Its not necessarily used to make the phase relationship between the two signals exactly the same, but to give you the ability to change that relationship without delay or moving one of your mics from that sweet spot.
 
I totally agree with you. Like I said earlier, if you like how each mic sounds, but the phase relationship is out of whack, a slight adjustment in the time line of either mic via a DAW will do EXACTLY anything that box will do. Trust me. I am NOT talking about adjusting their time line relationship to line up the initial transient. I am talking about moving one until the right FREQUENCIES are in phase.

Ed
 
heh

read page 7, paragraph 2, ...begins with "From first hand experience..."

This is for the analogue people and is essentially a delay... in the above memntioned paragraph it tells about a store that has only sold one and then had it returned because the user didn't care for it :)
 
Well, you are right that adjusting the time can eliminate some of the effects and have a similar effect to adjusting phase. But the key to this problem is in your last sentence - yes you can correct the phase for some frequencies with delay (maybe the ones that are most important to your ear) and make it sound better but the fact is that there will be other frequencies that remain out of phase. I'm not trying to argue how useful the device is in practice (cause I haven't tried it) but I assure you there is a difference between phase and time. Here is a quote from Jonathan Little (the guy who makes the IBP) from RAP about this:

"The IBP analog phase alignment tool(in between Phase) uses cascaded passive all pass filters. It is not a time delay box. Phase is frequency dependent . You can be out in time but be in phase. Polarity when you swap 0 and 180 is the right term however most mixing desks use the term phase and most engineers I know use it when describing the button... hence the use of phase invert on the IBP polarity button. Scotts experimenting with all pass filters was probably with a single stage all pass filter which has limited usability. Reading these posts has really put the fire under my ass to get the manual done. Phase seems to be pretty misunderstood."

I think phase is a little misunderstood here as well.

There is a discussion on Prosound Web about this right now:
http://recpit.prosoundweb.com/viewtopic.php?t=3983

Zekthedeadcow:
Did you read the first line of the second paragraph under ??Phase?? where it says the IBP is NOT a delay line????
 
From a physics standpoint, distance and phase aren't quite as directly related as just moving a mic to change the phase. After all, you can do a 180 degree phase swap without any distance change at all, and moving a mic will affect the phase of different feqeuncies differently.

As for shifting phase between 0 and 180 degrees though, that is done in analog by "lagging" or "leading" the AC signal, through capacitors or inductors. While it technically isn't quite the same as time shifting the waveform, since it is in theory possible to retain the original attack and yet nudge the phase of the AC signal, in practice the end result is nearly identical to a simple time shift.

If you digitally shifted the phase of a waveform without moving the attack, then you would by definition alter sonically the sound of the attack. This happens in analog phase shifting as well.

[edit] After reading the information in the last post, I think I understand a little better what you are saying. My above comments really are indicative of a single frequency signal, and as such are probably incorrect in the more general context. I hadn't thought of the effects of a natural multi-frequency signal. Yes, analog phase shifting, either leading or lagging the waveform, is strongly frequency dependent. Doing this to a signal will shift the time alignment of some frequencies relative to itself, that is... relative to other frequencies contained in that same signal.

So I would say it does actually make sense to ask about a plugin that could accomplish this digitally. Such a plugin would time shift the waveform using an algorithm that calculates the time shift appropriate for each frequency component. This would actually more closely match the real world effect of moving the microphone.[/edit]
 
Bigus-

Right. Except the plugin wouldn't time-shift the different frequencies by different amounts, but phase shift them by different amounts. A 80Hz signal travels at the same speed as a 80kHz signal, so there should be no frequency dependent time differences given controlled conditions (ie an anechoic chamber, no reflections).

The phase differences between two signals at different distances from one source differs across the frequency spectrum, but this difference is entirely predictable. The IBP operates on this premise by treating the low frequencies and high frequencies separately. He then apparently tuned the device so that it works well for the most common applications. I think this is only the tip of the iceberg as you could theoreticaly (actually probably easier with DSP) develop a device that shifted the phase continuously (or at least relatively continuously) across the entire spectrum.
 
ebeam said:
Bigus-

Right. Except the plugin wouldn't time-shift the different frequencies by different amounts, but phase shift them by different amounts.

I agree with what you are saying, but having a knowledge of analog circuit behavoir I know that capacitors and inductors are effectively time shifting the waveform. Certain events in time (such as attack and release) don't get completely time shifted, but their sonic characteristics are changed as a result. A steady state phase shifted waveform is a time shifted waveform. They are interchangeable. Natural sounds aren't steady state, which means you either time shift attack and release etc., or you alter those time-dependent events sonically. There's no other options.

In the digital domain, it would be easier to simply time shift depending on frequency, and let the attacks fall where they may. A sufficiently complex algorithm could keep time alignment on events and alter them sonically as necessary, but that would probably be more trouble than it's worth.
 
I have been dreaming of this friggin box! We saw a demo a few months ago.

This sucker, though you could do the same thing on a daw later, aloows you RIGHT THEN AND THERE to do tons of experimenting and getting different tones very quickly. A daw doesnt let you hear it sweep the way this baby does, and during the brief time it was in my hands, I was recording bussed mics to single tracks, cuz I KNEW it was good enough I wouldnt have to line it up later. I still did my headphone phase alignment trick, but this gave me a whole nother range...the price is a shame, if its still way hi like it was
 
Bigus Dickus said:
I agree with what you are saying, but having a knowledge of analog circuit behavoir I know that capacitors and inductors are effectively time shifting the waveform.

Thats interesting. So this type of device just shifts each frequency (or band of frequencies I assume) on the order of the phase difference (for example, 90deg out of phase would be a time shift of 1/4 wavelength)? So, this thing is really nothing more than a multiband delay? It just notches out a group of frequencies and delays each band by a time related to the average frequency or something??....just guessing here.

Who says the phase shifted waves can't be altered sonically? I doubt you could do any of this without some distortion anyhow? Even so, some have said that humans can even hear the difference between signals of opposite polarity.

Anyhow, analog circuits aside, is it theoretically possible to change phase without changing time? Any physics guys out there? :) I believe its possible if you think about the fact that any wav is just a complex summation of sinusoidal waves with different amplitudes and frequencies/wavelengths. Just as a perfect sine wave can be phase shifted without time delay, in theory, you could do the same thing by breaking that waveform down (ie fourier transform) to the individual frequency/amplitude components, phase shift each of the frequencies independently and combine them again? The accuracy of such a program would depend on the precision of the fourier transform (and the amount of data, ie bit rate). So, latency may be a concern although I'm not sure how processor intensive that operation would be. I think you might even be able to analyze 2 waveforms and have the software match the phase of the two automatically.
 
This is getting kind of deep here. :)

ebeam said:
Thats interesting. So this type of device just shifts each frequency (or band of frequencies I assume) on the order of the phase difference (for example, 90deg out of phase would be a time shift of 1/4 wavelength)? So, this thing is really nothing more than a multiband delay?
I can't claim to know the inner workings of this analog effects box without studying the circuit (and I'm not an EE by trade anyway), but I do know the basics of AC power theory, which is all analog sound is... a summation of AC signals.

The equations defining AC power manipulation are differential equations, and both time and frequency dependent. In short, if you solve a circuit behavior to predict a certain output when a given AC signal is run through a known capacitive or inductive circuit, you will find that the answer is dependent on the frequency of the input signal. This means that when a complex signal is used as an input, the analog circuit will affet each frequency component of that signal differently. It's not a "band" type of effect, but rather every subtle frequency can be though of as being split from the whole, ran through the circuit (which gives an output dependent on the frequency), and then summed with all the other component frequencies.

Anyhow, analog circuits aside, is it theoretically possible to change phase without changing time? Any physics guys out there? :)
It depends on your perspective. If you're talking about a pure sine wave, then answer is yes. All you have to do is time shift the waveform digitally, and then chop off or extend the attack to realign the start of the wave to the original starting time. Likewise for release.

If you're talking about a multi-frequency sound, then yes and no. You can use fourier transforms to seperate the waveform into all it's frequency components, do the above time shifting (which is phase shifting for pure waveforms) on each of the sine wave components, chop or extend attack and release to time align, and then recombine frequency components. The only problem with that is the alteration of the attack and release to time align will change the sonic character. It's unavoidable. For example, an attack starting in a trough will sound different than the original attack starting at 0db.

So, it's a matter of perspective. Can digital phaseshifting be done? Yeah, I guess, with enough computer power. It would probably take a while to calculate the transform at a high resolution for a long waveform. Can you do the phaseshitfing without altering attack and release? No. Not a big deal though, since you are doing the same thing in analog, and in any case the phase (time) shifted waveform will sound different in general, due to the different cancellations and interferences that will be generated from sliding frequency components in time relative to one another.

Just as a perfect sine wave can be phase shifted without time delay
A matter of semantics, perhaps, but I would say that phase shifting a perfect sine wave is time delaying (or advancing, take your pick) the waveform. Mathematically, it is identical, so long as you are away from attack and release points.
 
Bigus Dickus said:
This is getting kind of deep here. :)

Well, FWIW I'm enjoying this.... ;)

EE definitely isn't my forte so I appreciate the input.

I guess it may be a matter of semantics. But think about this: What is the difference between a perfect sine wave and a perfect cosine wave (with the same amplitude and frequency) starting and ending at the same time? Phase. No time difference, just 90 degrees out of phase. You can calculate the phase difference between these two and redraw one to match the other without changing the attack and release at all. If you can do that, you can do the same for a more complicated wave form, it'll just take you longer.

And a fourier transformation is a method for solving/manipulating a differential equation...
 
Back
Top