Transform Reference Guide
|User Guide | Transform Guide | OSW on the Web|
Subtract two values
The subtraction operator accepts inputs and initialization arguments of any numeric type (ints, floats, doubles, complex and double complex) as well as audio samples and lists. Different types can be mixed and matched. For example, substraction of a float from an int (or an int from a float) yields a float, while substraction of a float from audio samples yields audio samples where the float is subtracted from each sample value. Subtraction on list inputs is performed element-wise, where each element in the list could be a different type.
This operator outputs 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 operator '- instead.