I need to mix "n" sinusoidal waveforms which can be all active or some or all can be silent. The math seemed simple (working with float32 samples) because I just added all waveforms and then divide the result by 10 but the result is not what I wanted (too faint).
So, empyrically I found that the right value to divide the sum is not "n" but was something around 3.3 when N is 10.
Searching around I found another valid formula... which is to divide the sum by the square root of the number of waveforms...but also that doesn't seem quite right...
I wonder if that is true or there is a better formula (considering that the sinuses are going from 1 to -1.
The N frequencies are never multiple of each other and never "sync". I think the formula must include some triginometry and the difference in waveforms frequencies in Hz... just by instinct...
Any idea?