From: Romain B. <to...@ra...> - 2012-12-03 17:46:40
|
Hi Mike! 2012/11/26 Mike MacHenry <mik...@gm...>: > I found out a little while ago that the answer to my question is ocaml-mm, > and to use the add function in the Audio module. There is an example of this > in liquidsoap's add operator in src/operators/add.ml. > > I am wondering if anyone knows why the audio mixer is simply adding the two > floats, rather than using the typical audio mixing formula of > > mix f1 f2 = f1 +. f2 -. f1 *. f2 > > which equalizes the volume so that it doesn't grow unnaturally louder with > more pieces of audio mixed in. The operator has a "normalize" option that does this; it is enabled by default. Romain |