## Binary Operator

> Two input files (real or complex) are connected via a simple binary operator on a sample by sample basis, like adding, multiplying, taking the minimum etc. Can also be used to create a trimmed version of a sound.

Input file 1: First sound file, check '[Imaginary]' to provide complex files such as generated by the Fourier Translation.

Offset/Length: Allows you to trim the processed input file. Positive offset cuts away the beginning of the sound, negative offset inserts silence before the start of the sound. Length means total length (including offset).

Drive: Used for balancing the two input files. Applied before processing.

Rectify/Invert: Rectify takes the absolute value of each sample, Invert inverts all samples (positive samples become negative and vice versa). Inversion allows the 'Addition' operation to become effectively a 'Subtraction' etc.

Input file 2: Same settings for the second input file.

Output file: Output of the binary operation between input 1 and input 2, possibly complex.

Operator: The kind of sample-by-sample operation performed between the two inputs (sometimes represented by the letters 'a' and 'b'). 'Re' and 'Im' stand for real and imaginary part in case of complex files. Note that not all operators are implemented at the moment, some don't work with complex files.
'Power' means input 1 to the power of input 2.
AND/OR/XOR are binary logical operators performed by scaling the inputs to 24 bit(?) integer samples. May be useful in the fourier domain.
'Gate' means to take sample from input 1 if it is greater than sample from input 2, otherwise zero.
'ArcTangens' is arctan(input1/input2)/pi. Useful in the fourier domain(?) or for images.

Output mix: Optionally mix the operator output with the dry input 1 signal (possibly inverted for subtraction).

Known bugs: ...?

To be done: implement all operators!

last modified: 02-Aug-02