[PD] balancing loudness

day 5 day5ive at gmail.com
Sat Oct 1 21:13:56 CEST 2005


On Sep 30, 2005, at 9:51 PM, hard off wrote:

> any help on this will be appreciated:
>
> i have 2 samples, both normalised...but one is very LOUD and the other
> is very quiet.
>
> what process do i run them through to make them both sound equally
> loud?  a compressor?  a limiter?
>

GAINSLIDER~ from Max / MSP which can be simplified to the following 
formula:

[hslider]
|
[expr (0.000145 * exp($f1 * 0.06907)]
     |
v  |
[*~]
|
[dac~]

(source audio goes into where teh 'v' is.)

If $f1 is from 0-127 you will have logarithmic gain control of your 
levels from -inf to -0.0 dB. If you go to 152 like in Max, you will get 
+18.0 dB out.

> what pd objects am i looking for to do this?
>

[expr], [*~]


-d5





More information about the Pd-list mailing list