Stereo Swirl Vibrato — User Guide
Three-dimensional pitch modulation: creates immersive swirling vibrato effects by applying phase-shifted pitch modulation to left and right channels, producing the sensation of sound rotating around the listener's head in three-dimensional space.
What this does
This script creates immersive three-dimensional vibrato by applying phase-shifted pitch modulation to stereo channels. Unlike traditional vibrato that affects both channels identically, this effect creates the sensation of sound swirling around the listener by delaying the vibrato cycles between left and right channels. The result is a captivating spatial modulation that makes audio appear to rotate in three-dimensional space, creating everything from subtle stereo enhancement to intense psychedelic spirals.
Key Features:
- 6 Spatial Presets — From gentle chorus to extreme dizzying effects
- Phase-Shifted Modulation — Different vibrato timing per channel
- True Stereo Processing — Requires and preserves stereo input
- Mathematical Precision — Accurate phase relationships between channels
- Delay-Line Implementation — Clean pitch modulation without artifacts
- Real-time Feedback — Detailed parameter reporting in Info window
Technical Implementation: (1) Stereo verification: Ensures input is exactly 2-channel stereo. (2) Phase calculation: Applies different phase offsets to left (row 1) and right (row 2) channels. (3) Delay modulation: Uses variable delay lines to create pitch shifts. (4) Mathematical core: delay = base + base×depth×sin(2π×rate×t + (row-1)×phase_step). (5) Bounds protection: Ensures delay indices stay within valid sample range. (6) Quality preservation: Maintains original stereo image while adding motion.
Quick start
- In Praat, select exactly one stereo Sound object (2 channels required).
- Run script… →
stereo_swirl_vibrato.praat. - Choose a Preset or select "Custom" to adjust parameters manually.
- Adjust Delay Parameters:
- base_delay_ms: Center delay time (4-10 ms)
- modulation_depth: Pitch modulation intensity (0.08-0.25)
- modulation_rate_hz: Vibrato speed (1.5-8.0 Hz)
- Set Stereo Phase for spatial character:
- phase_step_radians: Channel offset (0.785-4.712 rad, 45°-270°)
- Click OK — effect applied, result named "originalname_vibrato_stereo_swirl".
- Check Info window for detailed processing report.
Stereo Phase Theory
The Swirl Illusion Mechanism
How Phase Offsets Create Motion
The core principle uses phase-shifted modulation between channels:
🔄 Understanding Phase Relationships
Phase step values and their perceptual effects:
- 0 radians (0°): Mono vibrato - both channels identical
- π/4 radians (45°): Subtle motion - gentle stereo enhancement
- π/2 radians (90°): Clear rotation - natural swirling motion
- π radians (180°): Maximum width - dramatic back-and-forth
- 3π/2 radians (270°): Intense spiral - exaggerated rotation
Different phase values create different types and intensities of spatial motion.
Delay-Line Pitch Shifting
How Variable Delays Create Vibrato
The script uses delay-line modulation for pitch effects:
Delay Parameter Ranges
base_delay_ms ranges:
3-5 ms: Very subtle pitch effects
5-7 ms: Natural vibrato range
7-10 ms: Strong, dramatic vibrato
10+ ms: Special effects, potential artifacts
modulation_depth effects:
0.05-0.10: Subtle, barely perceptible
0.10-0.15: Moderate, clear vibrato
0.15-0.20: Strong, obvious modulation
0.20-0.25: Very strong, dramatic effect
modulation_rate_hz musicality:
1.0-3.0 Hz: Very slow, special effect
3.0-5.0 Hz: Slow to medium, lyrical
5.0-7.0 Hz: Medium to fast, typical vibrato
7.0-9.0 Hz: Fast, intense, special effect
Psychoacoustic Foundations
Why We Perceive Swirling Motion
The auditory system uses several cues for spatial perception:
Spatial Physics
🌐 Three-Dimensional Sound Field
The script creates virtual speaker rotation through mathematical modeling:
Headphone vs Speaker listening:
- Headphones: Perfect channel separation, precise phase effects
- Speakers: Natural crosstalk, more diffuse but natural spatial image
- Optimal phase: 90°-180° for headphones, 180°-270° for speakers
Mathematical Implementation
The Core Swirl Algorithm
The script uses a sophisticated single-formula approach:
Phase Step Mathematics
0.785 rad (45°):
Right channel lags by 1/8 cycle → subtle motion
1.571 rad (90°):
Right channel lags by 1/4 cycle → clear rotation
3.142 rad (180°):
Channels in opposite phase → maximum width
4.712 rad (270°):
Right channel leads by 1/4 cycle → reverse rotation
6.283 rad (360°):
Full cycle = 0° → back to mono
Mathematical note: Phase values beyond 2π (360°) wrap around, so 450° = 90°, etc.
Complete Processing Pipeline
🔄 Stereo Swirl Processing Steps
STEP 1: Input Validation
STEP 2: Parameter Setup
STEP 3: Swirl Application
STEP 4: Final Processing
Swirl Presets
Gentle Stereo Chorus
🎵 Subtle Spatial Enhancement
Settings: Base: 5.0 ms, Depth: 0.10, Rate: 5.0 Hz, Phase: 90°
Character: Gentle, natural swirling with subtle pitch modulation
Best for: General stereo enhancement, vocal thickening
Wide Stereo Swirl
🌊 Dramatic Spatial Motion
Settings: Base: 6.0 ms, Depth: 0.15, Rate: 4.5 Hz, Phase: 180°
Character: Wide, dramatic back-and-forth motion between speakers
Best for: Special effects, dramatic moments
Rotating Leslie
🎹 Slow Organ-like Rotation
Settings: Base: 8.0 ms, Depth: 0.18, Rate: 1.5 Hz, Phase: 90°
Character: Slow, deliberate rotation reminiscent of Leslie speaker
Best for: Organ sounds, slow pads
Psychedelic Spiral
🌀 Intense Swirling Motion
Settings: Base: 7.0 ms, Depth: 0.20, Rate: 6.0 Hz, Phase: 270°
Character: Fast, intense spiraling with strong pitch modulation
Best for: Psychedelic effects, intense moments
Subtle Width
🔊 Gentle Stereo Enhancement
Settings: Base: 4.0 ms, Depth: 0.08, Rate: 4.0 Hz, Phase: 45°
Character: Very subtle motion that mainly enhances stereo width
Best for: Background elements, subtle enhancement
Extreme Dizzy
🎢 Maximum Intensity Rotation
Settings: Base: 10.0 ms, Depth: 0.25, Rate: 8.0 Hz, Phase: 180°
Character: Fast, deep modulation with extreme spatial motion
Best for: Special effects, intense transitions
| Preset | Base (ms) | Depth | Rate (Hz) | Phase | Motion | Intensity |
|---|---|---|---|---|---|---|
| Gentle Chorus | 5.0 | 0.10 | 5.0 | 90° | Clear rotation | Subtle |
| Wide Swirl | 6.0 | 0.15 | 4.5 | 180° | Back-and-forth | Dramatic |
| Rotating Leslie | 8.0 | 0.18 | 1.5 | 90° | Slow rotation | Moderate |
| Psychedelic | 7.0 | 0.20 | 6.0 | 270° | Fast spiral | Intense |
| Subtle Width | 4.0 | 0.08 | 4.0 | 45° | Gentle motion | Very subtle |
| Extreme Dizzy | 10.0 | 0.25 | 8.0 | 180° | Intense motion | Extreme |
Parameters
Delay Parameters
| Parameter | Type | Range | Default | Description |
|---|---|---|---|---|
| base_delay_ms | positive | 3.0-12.0 | 6.0 | Center delay time in milliseconds |
| modulation_depth | positive | 0.05-0.25 | 0.12 | Pitch modulation intensity |
| modulation_rate_hz | positive | 1.0-9.0 | 4.5 | Vibrato speed in Hz |
Stereo Phase Parameters
| Parameter | Type | Range | Default | Description |
|---|---|---|---|---|
| phase_step_radians | real | 0.0-6.283 | 1.571 | Phase offset between channels |
Output Options
| Parameter | Type | Range | Default | Description |
|---|---|---|---|---|
| scale_peak | positive | 0.1-1.0 | 0.99 | Output normalization level |
| play_after_processing | boolean | yes/no | yes | Auto-play processed sound |
Parameter Combinations
Natural vocal enhancement:
Base: 5-6 ms, Depth: 0.08-0.12, Rate: 4-6 Hz, Phase: 90°-135°
Dramatic special effects:
Base: 7-10 ms, Depth: 0.15-0.22, Rate: 2-4 Hz or 6-8 Hz, Phase: 180°-270°
Subtle stereo widening:
Base: 4-5 ms, Depth: 0.05-0.08, Rate: 3-5 Hz, Phase: 45°-90°
Leslie speaker simulation:
Base: 7-9 ms, Depth: 0.15-0.20, Rate: 1.5-3 Hz, Phase: 90°
Psychedelic effects:
Base: 6-8 ms, Depth: 0.18-0.25, Rate: 5-7 Hz, Phase: 180°-270°
Experiment with these starting points for different applications
Applications
Stereo Enhancement and Widening
Use case: Adding spatial interest to stereo mixes and tracks
Technique: Use subtle settings for enhancement
Application strategies:
- Stereo pads: Use Gentle Stereo Chorus preset
- Background vocals: Use Subtle Width with moderate depth
- Instrument sections: Use 90°-135° phase for natural motion
- Full mixes: Use very subtle settings (depth 0.05-0.08)
- Mono-compatible enhancement: Use 90° phase specifically
Result: Enhanced stereo image with natural motion
Special Effects and Sound Design
Use case: Creating dramatic spatial effects
Technique: Use extreme settings for maximum impact
Creative applications:
- Psychedelic effects: Use Psychedelic Spiral preset
- Transition effects: Use Extreme Dizzy for intense moments
- Character creation: Use specific parameter sets for unique identities
- Film and game audio: Use for spatial special effects
- Electronic music: Use for evolving textures and builds
Result: Dramatic spatial audio effects
Vintage Effect Emulation
Use case: Recreating classic rotary and chorus effects
Technique: Use authentic parameter combinations
Vintage emulation approaches:
- Leslie speaker: Use Rotating Leslie preset as starting point
- Analog chorus: Use Gentle Stereo Chorus with 90° phase
- Dimension D: Use subtle settings with specific phase relationships
- Jazz chorus: Use moderate depth with clear stereo motion
- 1970s string machines: Use specific rate/depth combinations
Result: Authentic vintage spatial effects
Practical Workflow Examples
🎧 Headphone Mix Enhancement
Goal: Create immersive headphone experience
Process:
- Use Gentle Stereo Chorus preset
- Adjust phase to 90°-135° for optimal headphones
- Apply to stereo pads and background elements
- Use subtle depth (0.08-0.12) for natural sound
Result: Immersive headphone mix with natural motion
🎹 Vintage Organ Simulation
Goal: Authentic Leslie speaker effect
Process:
- Start with Rotating Leslie preset
- Adjust rate to 1.5-2.5 Hz for slow rotation
- Use depth 0.15-0.20 for clear pitch modulation
- Apply to organ or electric piano sounds
Result