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.
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.
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:
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
- Select exactly one Sound.
- Run
Frequency-Dependent_Phase_Manipulation.praat. - Choose a preset and select a Transform character.
- Use Exact-length phase rotation when you want the cleanest phase-only wet transform.
- Use partial Dry_wet to make the phase field produce audible comb/phaser coloration.
- Use Stereo_width to increase L/R phase divergence.
Presets
| Preset | Phase amount | Stereo width | Phase mode |
|---|---|---|---|
| Subtle Comb | 20 rad | 0.15 | Periodic ripple |
| Wide Phaser | 60 rad | 0.40 | Periodic ripple |
| Chaotic Texture | 80 rad | 0.30 | Multi-period field |
| Spectral Blur | 50 rad | 0.25 | Quasi-periodic phase blur |
| Formant Resonance | 40 rad | 0.20 | Formant-band phase bumps |
| Extreme Comb | 100 rad | 0.10 | Periodic ripple |
| Deep Stereo | 70 rad | 0.60 | Multi-period field |
Phase modes
| Mode | Phase field | Character |
|---|---|---|
| Periodic phase ripple | A·sin(2πf/200) | Regular wrapped phase structure; especially comb-like when mixed with dry. |
| Multi-period phase field | Sum of 147, 283 and 521 Hz sinusoidal periods with different weights | Denser deterministic structure; despite preset language such as “chaotic,” there is no randomness. |
| Quasi-periodic phase blur | A·sin(f/37)·sin(f/113) | Irregular-looking but deterministic phase dispersion. |
| Formant-band phase bumps | Three Gaussian-shaped bumps centered near 800, 1500 and 2500 Hz | Phase change concentrated around those spectral regions; it is not a formant filter or formant tracker. |
Two transform characters
| Character | Meaning |
|---|---|
| Legacy padded FFT | Uses 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 rotation | No 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. |
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
| Control | Default | Meaning |
|---|---|---|
| Transform_character | Legacy padded FFT | Selects legacy padded+trim character or exact-length phase-only transform. |
| Phase_amount | 50 rad | Phase excursion before wrapping; zero is legal. |
| Stereo_width | 0.2 | Right phase field uses Phase_amount·(1+width); valid 0…1. |
| Phase_mode | Periodic ripple | Selects one of four deterministic frequency laws. |
| Dry_wet | 1.0 | Linear dry/wet proportion. At zero, the spectral transform is bypassed. |
| Scale_peak | 0.95 | Final target peak for every non-silent output. |
Channels, duration and level
- Output: always stereo.
- Mono: duplicated to L/R; Stereo_width can then create synthetic stereo through different phase fields.
- Stereo: channels 1 and 2 are preserved and processed independently.
- 3+ channels: only channels 1 and 2 are used; remaining channels do not enter the output.
- Sample rate: source sample rate throughout; there is no speed-mode resampling in v1.2.3.
- Duration: source duration is preserved.
- Level: final result is target-normalized to
Scale_peak. ThereforeDry_wet = 0is not amplitude-identical even though the spectral transform is bypassed.
Output name: <source>_phase_<mode>.
Visualization
- A: actual wrapped L and R phase rotations plus wrapped L/R difference.
- B: measured dry versus pure-wet magnitude spectrum after the real transform path.
- C: source and final L/R waveforms on a shared amplitude scale.
- The QC strip reports mode, phase amount, width, transform character, sample rate and output peak.
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.