+ -

Operators ››
Parent Previous Next

+ -

z = x + y

z = x - y

Arithmetic Plus or Minus

Commutative

Yes for + No for -

Data Types

Allowed

Not allowed

SCAL, VCT, AUD, TEXT, TSEQ, NUL

CLASS, CELL

x

y

z

NUL

anything

anything

SCAL

anything

anything

VCT

VCT

VCT (see below)

VCT

AUD

AUD (see below)

TSEQ

array

not allowed

Notes

  • In the case of SCAL + VCT or SCAL + AUD, the scalar is applied (added) to the entire array.
  • In the case of VCT + VCT, if the lengths of operands are different, the operation takes place until the two values are available.
  • In the case of VCT + AUD, if the lengths of operands are different, the operation takes place until the two values are available.
  • In the case of AUD + AUD, the operation is time-based: i.e., if the signal is available at the particular time, the operation takes place.
  • In the case of SCAL + TSEQ, the operation applies to the value of the TSEQ: i.e., the output TSEQ has the value added to SCAL at each time point.
  • In the case of TSEQ + TSEQ, both must have the same number of time points (individual time points don't need to be the same).
  • When both operands are grouped (i.e., matrix), both must have the equal number of groups(i.e., rows)

Examples

AUX> noise(30)@-10 + tone(200,10)@-10 >>50

audio (0.0ms~30.0ms) (50.0ms~60.0ms)

example1

AUX> tone(100,100)@-6 + tone(200,100)@-6 >>50

audio (0.0ms~150.0ms)

example2

Created with the Personal Edition of HelpNDoc: Easily create Help documents