+ and -

Arithmetic addition and subtraction in AUX work across scalars, vectors, audio signals, text, time sequences, and null values.

Syntax

z = x + y
z = x - y

Operands and Result

xyz
NULanythingsame as the non-null operand
SCALanythingsame shape/type as the other operand when supported
VCTVCTVCT
VCTAUDAUD
TSEQarray/time-sequence formsTSEQ when supported

Allowed types: SCAL, VCT, AUD, TEXT, TSEQ, NUL
Not allowed: CLASS, CELL

Notes

Examples

AUX> noise(30)@-10 + tone(200,10)@-10 >>50
z =
audio (0.0ms~30.0ms) (50.0ms~60.0ms)

Plus/minus example 1

AUX> tone(100,100)@-6 + tone(200,100)@-6 >>50
z =
audio (0.0ms~150.0ms)

Plus/minus example 2

Current source basis: