+= -= *= /=

Parent Previous Next

+= -= *= /=

x += y

x -= y

x *= y

x /= y

Compound operators for arithmetic operations, + - * and /

Equivalent expressions

x = x + y

x = x - y

x = x * y

x = x / y

Commutative


No


Data Types

Allowed

Not allowed

SCAL, VCT, AUD, TEXT, TSEQ, NUL

CLASS, CELL

x

y

x becomes

NUL

T*

T

SCAL

T

T

VCT

VCT

VCT

AUD

VCT

AUD

VCT

AUD

AUD

TSEQ

VCT

TSEQ

TSEQ

AUD

not allowed

AUD

TSEQ

AUD

* T means an allowed type.

Notes


Examples

AUX> x=rand(5)
x =
0.5853 0.2218 0.6290 0.1231 0.2736
AUX> x*=10
x =
5.8531 2.2182 6.2896 1.2313 2.7363
AUX> x=tone(500,100).hann@-20
x =
audio (0.0ms~100.0ms)


AUX> y=noise(10)@-10>>40
y =
audio (40.0ms~50.0ms)
AUX> x += y
x =
audio (0.0ms~100.0ms)


Created with the Personal Edition of HelpNDoc: Full-featured Kindle eBooks generator