Transform Reference Guide
|User Guide | Transform Guide | OSW on the Web|
Compare two numbers using less-than, less-than-or-equal-to, greater-than, or greater-than-or-equal-to tests.
The comparison operators accept inputs and initialization arguments of any numeric type (Integers, Floats, Doubles, Complex and DoubleComplex). For scalar input, the operators return a true or false value.
If one of the arguments is an audio-sample type and the other is a numeric type, the comparison operators return a stream of audio-samples whose values are either 1 or 0 depending on whether the corresponding input sample satisfies the comparison with the numerical argument. The comparison operators do not support both arguments as audio-sample types.
These operators output a result whever a new value is received via the left inlet param1, using the new value of param1 and the most recent value of param2, or the optional initial argument if no value has yet been received for param2. If you want to wait until both param1 and param2 receive new input values before computing a result, use the synchronous comparison operators instead.