Frequency-Dependent Phase Manipulation — User Guide

A stereo spectral phase-rotation processor: phase fields reshape transients and stereo relationships, while dry/wet interference can create comb- and phaser-like colour.

Author: Shai Cohen Affiliation: Department of Music, Bar-Ilan University, Israel Version: 1.2.3 (2026) License: MIT License Repo: https://github.com/ShaiCohen-ops/Praat-plugin_AudioTools
Contents:

What this does

Frequency-Dependent Phase Manipulation rotates each complex spectral bin by a phase amount that depends on frequency. In the Exact-length transform, this changes phase while preserving the magnitude of every ordinary complex FFT bin; DC and Nyquist remain real as required for a real-valued signal.

The processor always creates a stereo output. Mono sources are duplicated into L/R before phase processing; stereo sources keep their native L/R channels; inputs with more than two channels use only channels 1 and 2.

Why can a phase-only transform change timbre? At 100% wet, exact-length processing mainly changes waveform shape, transients and inter-channel phase relationships. But when dry and phase-rotated spectra are mixed, their phase differences create constructive and destructive interference, producing comb- or phaser-like magnitude coloration.

What is frequency-dependent phase?

A Fourier spectrum has both magnitude and phase. Magnitude describes how much of each frequency is present; phase describes the angular position of that sinusoidal component relative to a reference. This script applies:

X'(f) = X(f) · exp(i · φ(f))

The phase field φ(f) is different for each frequency and is specified in radians. Because sine and cosine are periodic, large Phase_amount values wrap modulo 2π; 50 radians does not mean a single 50-radian audible “delay,” but a rapidly wrapped frequency-dependent rotation pattern.

Stereo_width does not pan the signal. It scales the right-channel phase field by 1 + Stereo_width, creating L/R phase differences.

Quick start

  1. Select exactly one Sound.
  2. Run Frequency-Dependent_Phase_Manipulation.praat.
  3. Choose a preset and select a Transform character.
  4. Use Exact-length phase rotation when you want the cleanest phase-only wet transform.
  5. Use partial Dry_wet to make the phase field produce audible comb/phaser coloration.
  6. Use Stereo_width to increase L/R phase divergence.

Presets

PresetPhase amountStereo widthPhase mode
Subtle Comb20 rad0.15Periodic ripple
Wide Phaser60 rad0.40Periodic ripple
Chaotic Texture80 rad0.30Multi-period field
Spectral Blur50 rad0.25Quasi-periodic phase blur
Formant Resonance40 rad0.20Formant-band phase bumps
Extreme Comb100 rad0.10Periodic ripple
Deep Stereo70 rad0.60Multi-period field

Phase modes

ModePhase fieldCharacter
Periodic phase rippleA·sin(2πf/200)Regular wrapped phase structure; especially comb-like when mixed with dry.
Multi-period phase fieldSum of 147, 283 and 521 Hz sinusoidal periods with different weightsDenser deterministic structure; despite preset language such as “chaotic,” there is no randomness.
Quasi-periodic phase blurA·sin(f/37)·sin(f/113)Irregular-looking but deterministic phase dispersion.
Formant-band phase bumpsThree Gaussian-shaped bumps centered near 800, 1500 and 2500 HzPhase change concentrated around those spectral regions; it is not a formant filter or formant tracker.

Two transform characters

CharacterMeaning
Legacy padded FFTUses Praat's fast padded FFT and trims the longer inverse transform back to source duration. The phase rotation itself preserves each stored bin magnitude, but the padded+trim round-trip can add magnitude coloration; that character is intentionally retained.
Exact-length phase rotationNo FFT padding. Ordinary complex bins keep their magnitude exactly while their phase is rotated; DC and Nyquist stay real-only. This is the cleaner phase-only character.
Zero phase is not identical in both characters: in Exact-length mode, Phase_amount = 0 can bypass the spectral transform safely. In Legacy mode, the padded+trim round-trip is part of the retained sound and still runs when wet processing is audible.

Controls

ControlDefaultMeaning
Transform_characterLegacy padded FFTSelects legacy padded+trim character or exact-length phase-only transform.
Phase_amount50 radPhase excursion before wrapping; zero is legal.
Stereo_width0.2Right phase field uses Phase_amount·(1+width); valid 0…1.
Phase_modePeriodic rippleSelects one of four deterministic frequency laws.
Dry_wet1.0Linear dry/wet proportion. At zero, the spectral transform is bypassed.
Scale_peak0.95Final target peak for every non-silent output.

Channels, duration and level

Output name: <source>_phase_<mode>.

Visualization

Technological and compositional context

Frequency-dependent phase processing is closely related to the technology of the phaser. A conventional phaser uses all-pass sections to introduce frequency-dependent phase shifts, then mixes the shifted signal with the original so that cancellations and reinforcements create moving notches. AES literature explicitly distinguishes this phase-shift principle from flanging, which is based on time delay.

This script generalizes the idea in the FFT domain: instead of a small cascade of physical/recursive all-pass sections, it can write an arbitrary deterministic phase field directly across spectral bins. With 100% wet Exact mode, the effect is primarily phase dispersion; with dry/wet mixing, the familiar phaser/comb mechanism emerges through interference.

Further reading: William M. Hartmann, “Flanging and Phasers,” Journal of the Audio Engineering Society 26(6), 1978: AES E-Library. For the general all-pass concept, the AES Pro Audio Reference defines an all-pass filter as changing phase/delay without appreciably changing magnitude.