Get a free upgrade to WaveStack Modulate for iOS with code MODULATELAUNCH Free upgrade: MODULATELAUNCH

Phase

Steve Reich tape-phasing dual sample looper for VCV Rack

The Phase module panel in VCV Rack.

Phase is a dual sample looper with phase drift, inspired by Steve Reich’s tape phase compositions.

Phase plays two audio samples simultaneously and lets each loop drift relative to the other through one of two mechanisms: Sleep (silence gaps) or Rotate (continuous content drift, like tape machines at slightly different speeds). This is the process heard in works like It’s Gonna Rain and Piano Phase, where identical material slides slowly out of alignment, forms new rhythmic patterns where the two copies overlap, and eventually returns to unison. The module is 20 HP wide and has a stereo output.


How phase drift works

Each loop has a Drift knob (-500ms to +500ms) and a Mode switch (Sleep or Rotate). The two modes create drift in different ways:

Sleep mode

After a loop completes one cycle, it waits the drift duration before restarting. If Loop A has 10ms of drift and Loop B has 0ms, Loop A’s effective period becomes sample_length + 10ms while Loop B’s stays at sample_length. They gradually shift apart and eventually realign: for a 5-second sample with 10ms difference, full realignment occurs after about 500 cycles (~42 minutes).

Negative drift in Sleep mode cuts the loop short instead, ending it |drift| ms early and restarting immediately, so the loop moves ahead of the other one rather than falling behind it.

Rotate mode

The loop plays continuously with no gaps. Drift becomes a small speed offset, so the content gradually rotates within the loop region in the way two tape machines running at slightly different speeds move apart. The read position drifts by drift_ms worth of samples per loop cycle, calculated as (drift_ms × 48) / region_length extra speed per sample.

The speed offset also raises or lowers the pitch in proportion to the drift divided by the loop length. At 10ms drift over a 5-second loop the pitch shifts by about 0.2% (about 3.5 cents), which is very hard to hear. Large drift on a short loop shifts it much further: 500 ms over a 1-second loop plays 50% fast.

Negative drift rotates in the opposite direction. Both modes can be combined per-voice (one loop in Sleep, the other in Rotate) for hybrid behavior.


Controls

Per Loop (A and B)

ControlRangeDefaultDescription
Drift-500 to +500 ms0 msPhase drift amount and direction. In Sleep mode: positive = silence gap, negative = early restart. In Rotate mode: positive = drift forward, negative = drift backward.
Speed-4× to +4×1×Playback speed and direction. Center detent at 0 (stopped). Negative values play in reverse.
Pan-1 to +10 (center)Stereo position with equal-power panning.
ModeSleep / RotateSleepSelects how drift is applied to the loop.
Levelsilent to +6 dB0 dBThe loop’s volume, so two samples recorded at different levels can be balanced. The top of the pot is fine control around unity; the bottom fades to silence.
Filterlowpass, off, highpassoff (center)A DJ-style filter. Turn left and a lowpass sweeps down from 20 kHz to 60 Hz; turn right and a highpass sweeps up from 20 Hz to 8 kHz. The center passes the loop straight through, and a small resonance rises as you move away from it.

Global

  • Play: green LED latch button toggles play/stop. Module outputs silence when stopped.
  • Sync: momentary push button resets both loops to their start positions.

Inputs

Per Loop (A and B)

InputFunction
CLKTrigger: jump playhead to next detected transient within the loop region. Wraps to first transient at end.
START0-10V = 0-100% of sample. Sets loop start position. Overrides handle when patched.
LEN0-10V = 0-100% of remaining sample after start. Sets loop length.
Drift CV±5V, scale 50 ms/V (bipolar).
Speed CV±4V, scale 1×/V (bipolar), so ±4V covers the whole range.
Pan CV±5V, scale 0.2/V (bipolar).
Filter CV±5V sweeps the whole Filter range, added to the knob.

Global

InputFunction
PLAY GATEGate input. High (>=1V) = play, overrides button state when patched.
SYNCTrigger input. Resets both loops to their start positions, alongside the Sync button.

Outputs

OutputFunction
LStereo left mix of both loops
RStereo right mix of both loops
POLYEach loop on its own stereo pair, after its level, filter and pan: A left, A right, B left, B right. Use it to process or mix the two loops separately.
SYNCTwo channels: a trigger as loop A starts over, and one as loop B does. It fires when the audio actually restarts, so in Sleep mode it waits for the silence to end. Use it to clock other modules from the drifting loops.

Output level is ±5V scaled per loop, mixed and clamped to ±10V at the output stage.


Sample loading

Right-click the module to access sample loading:

  • Load Sample A / Load Sample B: opens a file dialog. WAV files are supported in mono or stereo, at any sample rate. Files are mixed down to mono on load (stereo positioning comes from the per-loop Pan control) and resampled to 48 kHz.

  • Cascade behavior: if you load only Sample A, it’s automatically also loaded into Sample B. Loading Sample B explicitly breaks this cascade. This makes Reich’s arrangement (the same sample in both loops) the default, with no extra menu steps.

  • Clear Sample A / Clear Sample B: removes the loaded sample.

  • Maximum sample length: 10 minutes (28.8M samples at 48 kHz).

  • Persistence: file paths are saved with the patch and reloaded on patch open.

Phasing works best with a loop that is already trimmed to the material you want to hear. I cut and audition samples in SampleStack before loading them, and its guide to choosing samples for Phase covers what makes a sample phase well.


The waveform display

The display occupies the top of the module and shows both samples stacked:

  • Top half: Sample A waveform in blue
  • Bottom half: Sample B waveform in orange
  • White vertical line: playhead position for each loop
  • Subtle vertical lines: detected transient markers
  • Bracket handles: draggable loop start/end markers
  • Dimmed regions: areas outside the active loop region
  • Origin line: semi-transparent vertical line showing where the original sample start has drifted to in Rotate mode
  • Rotated waveform: in Rotate mode, the waveform image itself rotates to match the audio content as it drifts

Loop region handles

The bracket handles let you set the loop start and end points by dragging. Drag sensitivity is scaled to VCV Rack’s zoom level, so a drag of the same distance on screen moves a handle by the same amount at any zoom. Loop regions are saved with the patch, and when the START or LEN CV inputs are patched they override the handle positions.


Transient detection

Phase performs energy-based onset detection on each sample as it loads. Detected transients become jump targets for the CLK inputs and visual markers on the waveform display.

Algorithm

  1. RMS energy is computed in 1024-sample windows with 256-sample hop
  2. High-frequency energy is added via sample differencing: this catches sharp transients buried in noise
  3. A half-wave rectified onset detection function tracks positive energy changes
  4. An adaptive threshold compares each frame against the local mean over a 30-frame context window
  5. Local peak picking with ±2 frame neighborhood prevents double-detection
  6. Minimum gap enforcement prevents transients from clustering too tightly
  7. An absolute energy floor (0.005) prevents false triggers on quiet/silent passages

WAV cue point support

If a WAV file contains embedded cue points, those are used as transient markers instead of running auto-detection. Cue positions are resampled if the file isn’t 48 kHz. You can therefore place markers by hand in a DAW and Phase will jump to exactly those positions. If you would rather use automatic detection, the “Re-detect Transients” context menu option replaces the cue points with detected transients.

Context menu controls

  • Re-detect Transients: re-run detection with current settings
  • Sensitivity: High / Medium (default) / Low. Maps to threshold range 1.0-12.0.
  • Min Transient Gap: 10ms (fast) / 50ms (medium) / 100ms (slow, default)

Clock input behavior

On a rising edge of CLK, the playhead jumps to the next transient after the current position within the active loop region. If at the end of the region, it wraps to the first transient.


VCA Mode (anti-click)

When the playback position jumps, the waveform steps from one value to another and the step is heard as a click. Phase jumps at loop restarts, transient jumps, sync resets and sleep wake-ups. VCA Mode (enabled by default, toggleable from the context menu) applies a 1ms attack/release envelope around each of these events. When a jump is scheduled, the envelope fades out over 1ms (48 samples), the jump executes, and the envelope fades back in over 1ms. The 2ms transition is too short to hear as a gap and removes the step that causes the click.


Patch ideas

Steve Reich phase drift

Load the same sample in both loops (the cascade does this automatically), set Loop A’s drift to 5-10ms in Sleep mode, and leave Loop B at 0ms. Pan A left and B right. The two copies gradually shift apart, form new composite rhythms where they overlap, and eventually return to alignment.

Tape machine drift (Rotate)

Use the same setup as above, but switch both loops to Rotate mode, with Loop A at 5ms drift and Loop B at 0ms. The drift is now continuous, with no silence gaps, and the content gradually rotates within each loop as it would on two tape machines running at slightly different speeds. The small pitch difference between the loops adds to the resemblance to tape.

Bidirectional drift

Load the same sample in both loops and set Loop A to +10ms drift and Loop B to -10ms. The loops drift in opposite directions at once, so the difference between them is 20ms per cycle and they realign in half the time a single 10ms drift would take.

Reverse texture

Load a melodic or vocal sample, set Speed A to 1× forward and Speed B to -0.5× reverse, and give each loop a different region. The forward copy plays against a slower reversed copy an octave down. Add small drift values in Rotate mode so the relationship between them keeps changing.

Transient slicer

Load rhythmic material like a drum loop. Set transient detection to high sensitivity with 10ms minimum gap. Patch a clock divider to CLK A and CLK B at different ratios, so each clock pulse jumps that loop to its next transient. The two voices play different slices of the source in different rhythms at the same time.

Granular-style scanning

Patch an LFO to the START CV input to slowly scan through the sample. Set LEN CV to a low value (small loop windows). Use different LFO rates on A and B. The loops sweep across the sample at different rates, which sounds similar to granular time-stretching although no grains are involved.

Phase composition starter

In Rotate mode with same sample loaded:

  • Loop A: drift 0ms, speed 1× (anchor)
  • Loop B: drift 2ms, speed 1× (slow drift)
  • Pan A center-left, B center-right
  • Add an LFO to Drift B CV at a very slow rate to create a breathing phase relationship that speeds up and slows down

Video


JSON persistence

Saved with the patch:

  • File paths for both samples
  • Explicit-B flag (whether B was loaded independently)
  • Play state
  • Transient sensitivity and minimum gap settings
  • VCA Mode setting
  • Loop start/end regions for both samples

Inspiration

Steve Reich, the American composer, found tape phasing by listening to two reel-to-reel machines playing the same loop and noticing that they drifted out of sync. The idea needs almost nothing beyond two copies of the same material, and It’s Gonna Rain (1965), Come Out (1966), Piano Phase (1967) and Drumming (1971) all come from it. Phase keeps that process and adds things tape cannot do, such as CV control, transient quantization, reverse playback and instant loop region changes. It also removes the practical problems of tape, including clicks at the splice, the work of lining two machines up, and a setup that could take half an hour.

In the synthesis guide

  • Sampling: Speed, Pitch, Loops and Reverse

    A sampler plays a recording back as an instrument. Changing the playback speed changes the pitch and the length together, and loops let a short recording sustain.

Pair with