Re: [linux-audio-dev] Mixing signals

From: Alfons Adriaensen <fons.adriaensen@email-addr-hidden>
Date: Mon May 23 2005 - 13:06:48 EEST

On Mon, May 23, 2005 at 11:03:30AM +0200, Richard Spindler wrote:

> if (*p_A<0 && *p_B<0) {
> *p_output =(*p_A+1)*(*p_B+1)-1;
> } else {
> *p_output =2*(*p_A+*p_B+2)-(*p_A+1)*(*p_B+1)-3;
> }

What is this supposed to do, and why is it written as it is ?

The if part is : a + b + a * b
and the else is : a + b - a * b

Looks more like some hack to combine log probabilies or some such
than audio signals.

-- 
FA
Received on Mon May 23 16:15:14 2005

This archive was generated by hypermail 2.1.8 : Mon May 23 2005 - 16:15:14 EEST