[PD] Normaliizing sinus mix

William Brent william.brent at gmail.com
Mon Apr 30 04:31:51 CEST 2018


Hi Joao, you need to find the peak amplitude, max(abs(x)), and divide all
samples by that.


On Apr 29, 2018 7:55 PM, "João Pais" <jmmmpais at gmail.com> wrote:

Hello list,

I was curious about the following math issue: when defining a waveform
using "sinesum 0.8 0.2 0.1", what would be the formula to normalize the
wave to 1?
I tried adding all the values (=1.1 in this case), getting the inverse
value and multiplying the list with that. Although the sum of the values
is 1, the resulting wave isn't normalized to 1 the same way the "normalize
1" command would do it. So I imagine some higher math is required?

Also, is the process the same if the wave components are harmonic or not
(that is, multiples of the base frequency)?

Best,

jmmmp

_______________________________________________
Pd-list at lists.iem.at mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20180430/1d27b036/attachment-0001.html>


More information about the Pd-list mailing list