Forums > MaxMSP

Prevent 2 mixed audio signals from clipping

Apr 24 2013 | 4:05 pm

Hello all

Apologies for being a noob.

If I mix two audio signals into one, will they clip? If so, is there a limiting object? I can’t find one…

Apr 24 2013 | 5:31 pm

If your two signals exceed +/- 0.5 before summing by addition, then the result will exceed 1. The [clip~] object allows you to specify upper and lower ranges, [tanh~], [sinx~] and others will do folding at the limits, but the simplest way is to first ensure each signal is less than 1. then divide each by 1./2. or 0.5.

Apr 24 2013 | 9:03 pm

Divide by 0.5? Don’t you mean multiply?

But what you’re looking for is called a limiter. That will attenuate signals over a set threshold with variable severity. [clip~] would be the upper extreme, also called brickwall limiter. Check out [omx.peaklim~] for an adjustable one.

Apr 24 2013 | 11:26 pm

Divide? Multiply? What’s the difference?


Thanks for picking up my slip of the pen. Forgot about peaklim too.

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP