QUOTE(marcan @ Apr 1 2005, 11:44 PM)
QUOTE(bryant @ Apr 1 2005, 03:14 PM)
That will do it. Depending on your application you might want to divide by 2 after to avoid clipping (although floating audio won't clip, when it gets truncated to 24-bit it might).
Thx bryant.
It will be converted into mp3. However the level of both source files are tuned in order to not clip when they are both mixed at 0 db (no gain, no attenuation).
In that case I should avoid cliping during the playback...
Ive come across a theoretical problem with this though:
Imagine two tracks both of a pure sine note at same freq and volume, but recorded at different times. If you add these two tracks together -sample by sample, the resulting mix will just as likely be silent as be twice as loud as either of the source tracks (!) its most likely to be around the same loudness as either of them - depending on the wether the phase of the signals in each track happen to reinforce, oppose each other, or just move each other over a bit.
I dont know how this fundamental observation manifests itself in practice, maybe mixing like this can produce flanging and strange loudness wobbling ?
It should be better off if they are dissimilar like one track of drums and other vocal.
There may be some techniques used to combat wobbling artifacts - like.... ~time dithering or something... Some mixing techniques could manipulate frequency spectrums...
It would be about the best way of forcing two signals into one. In the real world energy makes sure it is mantained when brought together, but in this virtual analogue it can easily dissappear without a trace