Multiply — Gain & Modulation

Multiplication is one of the simplest operations in DSP — and one of the most useful. If an audio sample is a number, multiplying that number changes its size. Do it to every sample and we change the signal level.

The first “aha”: gain is multiplication. A fader is effectively controlling a multiplier.

1. Multiply a signal by a constant

+0.000
×
+0.500
=
+0.000

These Max-style number boxes show one instantaneous sample from the moving waveform. Watch the numbers: input × multiplier = output.

× 1
Same signal.
× 0.5
Half the amplitude.
× 0
Silence.
× −1
Same amplitude, opposite polarity.

2. Now replace the constant with a changing number

This is the important jump. The multiplier does not have to stay at 0.5 or 1. It can change from sample to sample — automatically.

+0.000
×
+1.000
=
+0.000

Tremolo: an LFO continuously changes the multiplier. The waveform itself remains the source; its amplitude rises and falls because we are multiplying it by a moving control value.

3. Hear multiplication

Start the tone, then move Rate, Depth, change modulation mode, or adjust Audio volume. The audio engine reads those controls continuously, so you hear the multiplication change in real time.

OSCILLATOR × CHANGING GAIN = AMPLITUDE MODULATION

4. You've already used this everywhere

Gain / fader
audio × constant
ADSR
audio × envelope
Tremolo
audio × slow LFO
Fade
audio × ramp
Granular window
grain × window shape
Compressor
audio × calculated changing gain
Same operation; different source for the multiplier. That is a recurring DSP pattern.

5. Control-rate versus audio-rate multiplication

If the multiplier changes slowly, we hear the level changing: fades, envelopes and tremolo. If it changes at audio rate, multiplication can create new spectral components — the basis of amplitude modulation and closely related techniques.

slow multiplier → changing amplitude    |    fast multiplier → new audible spectral behaviour

We do not need the full maths yet. The important point is that the operation has not changed: it is still multiplication.

6. One operation, many processors

INPUT x[n] × CONTROL g[n] = OUTPUT y[n]

x[n] means the current input sample. g[n] is the gain/control value at that moment. y[n] is the resulting output sample.

Next: ADD. Once we can multiply signals and add them together, we already have two of the most important pieces in the DSP toolbox.