0
$\begingroup$

I have $2$ formulas (mentioned in this page): http://www.vttoth.com/digimix.htm

  1. $Z = 2AB$ if both $A<0.5$ and $B<0.5$
  2. $Z = 2(A+B) – 2AB – 1$ otherwise

where $A$ and $B$ are numbers between $0$ and $1$ (including $0$ and $1$) eg: $0$ $0.2$ $0.9$ $0.34$ $1$

Now, I can understand formula $1$ (if $A$ and $B$ are BOTH greater than $0.5$, then $Z$ is $2AB$, right?) What I can't understand is the part from the second formula that reads $2(A+B)$:

Add $A$ with $B$ and then multiply by $2$ : $2\cdot(A+B)$ is this correct or am I missing something?

Any help?

  • 0
    Side note: the usual solution to mixing audio (and other effects) is to perform intermediate calculations at a greater resolution, then dither on the way back down to the desired output range. For instance, the Pro Tools mix engine uses 48-bit fixed-point arithmetic internally. Multiplying the signals seems... weird.2011-10-18

1 Answers 1

1

Your description of the evaluation of $2(A+B)$ is correct: first add $A$ and $B$, then multiply by $2$. Since you didn't write why you think you may be missing something there, it's hard to say more about that.

However, your description of the first formula is incorrect. The symbol $<$ denotes the relation "less than", not "greater than".

  • 0
    @joriki: Mistyping, of course.2011-10-18