<div dir="auto">Hi Joao, you need to find the peak amplitude, max(abs(x)), and divide all samples by that.<div dir="auto"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Apr 29, 2018 7:55 PM, "João Pais" <<a href="mailto:jmmmpais@gmail.com">jmmmpais@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello list,<br>
<br>
I was curious about the following math issue: when defining a waveform  <br>
using "sinesum 0.8 0.2 0.1", what would be the formula to normalize the  <br>
wave to 1?<br>
I tried adding all the values (=1.1 in this case), getting the inverse  <br>
value and multiplying the list with that. Although the sum of the values  <br>
is 1, the resulting wave isn't normalized to 1 the same way the "normalize  <br>
1" command would do it. So I imagine some higher math is required?<br>
<br>
Also, is the process the same if the wave components are harmonic or not  <br>
(that is, multiples of the base frequency)?<br>
<br>
Best,<br>
<br>
jmmmp<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank" rel="noreferrer">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br></div>