theallelectricsmartgrid

Quadraphonic Delay and Phase Vocoder

The Quad Delay (QuadDelay in private/src/QuadDelay.hpp) is a highly complex, time-warped delay effect deeply integrated with the Theory of Time.

Time Warping and the Inverse Buffer

A traditional delay line implements the equation D(t + d) = X(t), where t is wall-clock time, d is the delay time, and X is the input signal.

The Smart Grid One implements a time-warped version of this equation. Let F(t) be the post-modulation logical time from the Theory of Time. The quad delay implements: D(F⁻¹(t + d)) = X(F⁻¹(t)) This means: “At the wall-clock time that produces the warped time t + d, output the sample that was recorded at the wall-clock time that produced the warped time t.”

Assuming F is injective (which it sometimes is, though extreme modulation can break this), this can be rewritten as: D(t) = X(F⁻¹(F(t) - d))

To implement this, the delay requires a “moveable writehead.” It must compute and store the inverse function F⁻¹.

Read/Write Head Computation (QuadDelayInputSetter)

The read and write heads are produced in QuadDelayInputSetter::Process (private/src/QuadDelay.hpp) per quad channel i.

The final head equations are:

So both heads live in the same unwound sample coordinate system. The read head is projected into the selected-loop-length region behind the write head, offset by the resynthesis hop size, with delay shaped by quantized ratio and widener.

Phase Vocoder Done Right

Because the read head is moving through the audio buffer at a variable rate (due to the time warping), a simple read would result in severe pitch shifting (like scratching a vinyl record).

To preserve the original pitch while allowing the time-warping to stretch and compress the audio, the delay uses a Phase Vocoder (Resynthesizer in private/src/Resynthesis.hpp).

Quad Delay Features

The Quad Delay supports a rich set of features: