Transform Reference Guide


Add two values synchronously







The addition operator accepts inputs 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, addition of a float and an int yields a float, while addition of a float to audio samples yields audio samples where the float is added to each sample value. Addition on list inputs is performed element-wise, where each element in the list could be a different type.

The addition operator also accepts string arguments. The result is the concatenation of the two input strings.

This operator only outputs a result when new values have been received by both inlets. Thus, if a new value is received by param1, no result will be computed until a value is received by param2 as well. This is useful if you want to use an addition operator to mix two signals together. If this is not the behavior you want, try the + operator instead.

See Also

OSW Programming Details
Tutorial patch: mixing two signals

Open Sound World User Guide
© 2000-2004 Amar Chaudhary. All rights reserved.