Beautiful Bleep

Multiplier

Multiplier in the module view

Introduction

Two multipliers that compute X × Y, with both signals allowed to be negative. With audio it's a ring modulator: metallic, bell-like tones from two oscillators. With modulation it lets one signal control the depth of another, for example an LFO whose depth follows an envelope.

How does it work?

Each section computes

Out = (X + Bias X) × (Y + Bias Y) × Gain
  • An unpatched Y reads +1, so the section simply passes X at Gain.
  • An unpatched X2 takes Out 1. Patch three signals into X1, Y1 and Y2 to multiply all three together.
  • Bias adds a constant before multiplying. With Bias Y at 1, a bipolar Y gives amplitude modulation (the original tone stays); at 0 it's ring modulation (the original tone disappears, only sum and difference tones remain).

Unlike the VCA, the Multiplier treats both inputs the same, has no response curve, and lets the gain go negative.

Multiplying two audio signals creates new frequencies, which can fold back as aliasing. Oversampling computes the product at 2× or 4× the sample rate and filters it. This adds a short latency, so leave it off for modulation.

How to use it?

  • Ring modulator: two oscillators into X1 and Y1, Out 1 to an output. Detune one oscillator for bell tones; set Oversampling to 4× for high notes.
  • Tremolo with character: audio into X1, an LFO into Y1, Bias Y1 at 1.
  • Depth from an envelope: LFO into X1, envelope into Y1: the LFO only moves while the envelope is open.
  • Squaring: the same signal into X and Y. A sine becomes a sine at twice the frequency, an LFO gets a rounder, always-positive shape.

Demo patches

Five whole patches show what Multiplier does. In the standalone app open File → Presets… (⌘P) and pick Multiplier under Demos by module; on the website they are in the Multiplier entry of the Bleep Library, where Load in Play opens one in your browser. Loading one replaces the project and starts the transport.

Patch What it shows
Multiplier: Ring Mod Bells Two sine oscillators multiplied together make only their sum and difference tones, which are not whole-number multiples of the note: clangorous bells that fade with each strike. Change the second oscillator's Coarse to retune the bell.
Multiplier: Offset Tremolo A saw melody goes into X1 and a sine LFO into Y1, with Bias Y1 lifting the LFO above zero so it works as a smooth tremolo; without the bias the sound would also flip its phase. Lower Bias Y1 toward zero for a deeper, rougher ring.
Multiplier: Envelope Times LFO Every note's decay envelope is multiplied by a slow LFO before it reaches the filter, so the notes open the filter wide when the LFO is high, hardly at all when it is low and even invert when it dips below zero. Raise Bias Y1 to keep the LFO positive.
Multiplier: Twin Ring Modulators Both multipliers ring-modulate the same saw melody, one with a modulator at a fifth above and one at a ratio that sits between notes, and each goes to its own side: left is nearly musical, right is metallic. Change either modulator's Coarse to move the clangour.
Multiplier: Robot Drums A whole drum loop is multiplied by a low sine so each hit turns pitched and robotic, mixed with the untouched loop underneath. Raise Oversampling to keep the highs clean, or change the sine's Coarse to tune the robot.

Reference

Knobs and settings

Control Range Default
Bias X1, Bias X2 −1 … +1 0
Bias Y1, Bias Y2 −1 … +1 0
Gain 1, Gain 2 −2 … +2 +1
Oversampling Off, 2x, 4x Off

Inputs

Input Signal What it does
X1, Y1 control First multiplier. Y1 unpatched reads +1.
X2, Y2 control Second multiplier. X2 unpatched takes Out 1; Y2 unpatched reads +1.

The inputs accept audio and pitch signals too.

Outputs

Output Signal What it does
Out 1 control (X1 + Bias X1) × (Y1 + Bias Y1) × Gain 1
Out 2 control the same for the second section