I have two audio signals that I want to mix at various mixing ratios. Initially, I simply went for something like
y(t)=α⋅x1(t)+(1−α)⋅x2(t)
where α is the ratio between zero and one and x1 and x2 are the two signals.
However, I have seen a few panning curves that did not mix signals linearly. They told me that a linear mix would change the overall loudness while mixing.
Is there something to that or is a linear mix the correct way to do it?
Answer
That depends somewhat on the application. In most cases a "constant energy" pan will be best. This can be expressed as y(t)=√α⋅x1(t)+√1−α⋅x2(t)
If you are working with fixed point signals, such as wave files for examples, you may run into clipping problems. That could be a topic for a separate question.
No comments:
Post a Comment