AudioMath

Do maths on the sound itself, sample by sample: ring modulation, tremolo, offsets and frequency modulation, built from a few wires.

An AudioMath works on audio one sample at a time. Operation picks Add, Subtract, Multiply, Divide (0 where dividing by 0), Min, Max, Abs, Clamp, Tanh, Sin (a waveshaper), Power or Mix. Every operand takes an Audio wire or a number, typed or wired from any number output, which becomes a steady stream; its output is Audio. It never plays on its own: wire it into an effect, a mix or an AudioOutput.

Properties

Audio

NameTypeDefaultDescription
AudioaudioProperties window onlyThe node's output: the result of the math, as Audio.

Math

Operationchoice"Add"
Properties window only; Add, Subtract, Multiply, Divide, Min, Max, Abs, Clamp, Tanh, Sin, Power, Mix
Which math it does per sample; switching it drops wires into operands the new operation lacks.
Anumber0
Properties window only
The first operand, labelled to suit the Operation.
Bnumber0
Properties window only
The second operand, labelled to suit the Operation; Divide gives 0 where B is 0.

Node

PositionVector2Properties window only
From Instance 22