Stereo Flanger Effect — User Guide
Jet-like modulation with intense comb filtering: creates sweeping metallic resonances using short modulated delays with regenerative feedback for dramatic time-based effects.
What this does
This script implements a stereo flanger effect — recreating the intense, jet-like modulation characteristic of classic analog flangers. The effect works by combining a signal with a slightly delayed, modulated version of itself, creating a series of sharp resonant peaks (comb filtering) that sweep up and down the frequency spectrum. Stereo enhancement creates swirling spatial movement, while regenerative feedback intensifies the metallic, resonant character.
Key Features:
- 7 Built-in Presets — From vintage 80s to modern extreme effects
- Regenerative Feedback — Creates intense metallic resonances
- Negative Feedback Option — Hollow, inverted phase effects
- Stereo Phase Offset — Creates swirling spatial movement
- Through-Zero Simulation — Ultra-short delay effects
- Auto Stereo Conversion — Mono to stereo for width effects
Technical Implementation: (1) Stereo handling: Automatic mono-to-stereo conversion for width effects. (2) Feedback stage: Creates intense resonances by adding self-modulated delayed signal (positive or negative). (3) Main flanger stage: Combines dry signal with modulated delay using time-varying delay modulation. (4) Stereo phase offset: Left and right channels use different LFO phases. (5) Dry/wet mixing: Blends original and processed signals. Core formula: output = (1-mix)×dry + mix×dry[delay], with optional feedback: signal = original + feedback×signal[delay].
Quick start
- In Praat, select exactly one Sound object (mono or stereo).
- Run script… →
stereo_flanger_effect.praat. - Choose a Preset or select "Custom" to adjust parameters manually.
- Adjust LFO Settings to control the sweep motion:
- Rate_hz: Speed of the sweep (0.1-5 Hz)
- Depth_ms: Intensity of modulation (0.5-5 ms)
- Base_delay_ms: Center delay time (1-10 ms)
- Set Stereo_Phase_Offset_deg (180° = maximum width, 0° = mono).
- Adjust Feedback (-0.9 to +0.9) for resonance intensity.
- Set Dry_Wet_Mix (0.0-1.0) to blend effect with original.
- Click OK — flanger applied, result named "originalname_flanger".
Flanger Theory
How Flanging Works
The Comb Filtering Principle
Basic flanger operation:
Comb Filter Frequency Response
Resonant peaks occur at regular intervals:
Amplitude
▲
│ ▲ ▲ ▲ ▲ ← Resonant peaks at n/δ
│ / \ / \ / \ / \
│ / \/ \/ \/ \
│ / ↓ \ ← Notches at (2n+1)/(2δ)
│/ \
└─────────────────────────► Frequency
Feedback Characteristics
Positive vs Negative Feedback
Feedback behavior:
Feedback Intensity
0.0: No feedback - gentle comb filtering
+0.3: Mild resonance - noticeable peak emphasis
+0.6: Medium resonance - pronounced metallic character
+0.8: High resonance - intense, dramatic sweeps
-0.3: Mild hollowing - subtle phase cancellation
-0.6: Medium hollowing - obvious hollow character
-0.8: High hollowing - extreme phase cancellation
Musical use: Positive for metallic effects, negative for hollow sounds
Through-Zero Flanging
Ultra-Short Delay Effects
Through-zero concept:
Stereo Enhancement
Phase Offset Between Channels
Stereo flanger formula:
Phase Offset Values
0°: Mono flanging - identical in both channels
45°: Gentle stereo motion - subtle width
90°: Clear stereo separation - obvious movement
180°: Maximum width - channels in opposite phase
Custom values: Experiment for unique spatial patterns
Psychoacoustic result: Peaks appear to rotate around listener
Parameter Relationships
Delay Time Ranges
Base_delay_ms (center delay):
Depth_ms (modulation range):
Rate_hz (sweep speed):
Complete Processing Pipeline
Effect Presets
Classic 80s Flanger
🎸 Vintage Flanger Tone
Settings: Rate: 0.5 Hz, Depth: 1.5 ms, Base: 2.0 ms, Phase: 90°, Feedback: 0.6, Mix: 0.5
Character: Classic analog flanger sound with moderate resonance
Best for: Electric guitar, synths, 80s-style vocals
Slow Jet (High Feedback)
✈️ Dramatic Resonant Sweeps
Settings: Rate: 0.15 Hz, Depth: 2.5 ms, Base: 3.0 ms, Phase: 180°, Feedback: 0.85, Mix: 0.5
Character: Intense, metallic sweeps with high resonance
Best for: Sound effects, dramatic transitions, lead instruments
Liquid Metal (Fast)
💧 Hollow, Phase-Inverted
Settings: Rate: 3.0 Hz, Depth: 0.5 ms, Base: 1.0 ms, Phase: 180°, Feedback: -0.7, Mix: 0.6
Character: Fast, hollow modulation with negative feedback
Best for: Special effects, experimental sounds, percussion
Deep Throat (Long Delay)
🎵 Chorus-Like Modulation
Settings: Rate: 0.4 Hz, Depth: 4.0 ms, Base: 8.0 ms, Phase: 45°, Feedback: 0.5, Mix: 0.5
Character: Gentle, chorus-like modulation with wide peaks
Best for: Pads, vocals, subtle movement
Through-Zero (Simulated)
🌀 Ultra-Short Delay Effects
Settings: Rate: 0.2 Hz, Depth: 0.9 ms, Base: 1.0 ms, Phase: 180°, Feedback: 0.4, Mix: 0.7
Character: Unique phase cancellation from near-zero delays
Best for: Experimental sounds, special effects
Subtle Stereo Widener
🔊 Gentle Spatial Enhancement
Settings: Rate: 0.1 Hz, Depth: 1.0 ms, Base: 5.0 ms, Phase: 180°, Feedback: 0.1, Mix: 0.4
Character: Very subtle flanging primarily for stereo width
Best for: Adding space to mono sources, background elements
| Preset | Rate (Hz) | Depth (ms) | Base (ms) | Phase (°) | Feedback | Mix | Use Case |
|---|---|---|---|---|---|---|---|
| Classic 80s | 0.5 | 1.5 | 2.0 | 90 | 0.6 | 0.5 | Vintage instruments |
| Slow Jet | 0.15 | 2.5 | 3.0 | 180 | 0.85 | 0.5 | Dramatic effects |
| Liquid Metal | 3.0 | 0.5 | 1.0 | 180 | -0.7 | 0.6 | Hollow effects |
| Deep Throat | 0.4 | 4.0 | 8.0 | 45 | 0.5 | 0.5 | Chorus-like |
| Through-Zero | 0.2 | 0.9 | 1.0 | 180 | 0.4 | 0.7 | Experimental |
| Stereo Widener | 0.1 | 1.0 | 5.0 | 180 | 0.1 | 0.4 | Subtle enhancement |
Parameters
LFO Settings
| Parameter | Type | Range | Default | Description |
|---|---|---|---|---|
| Rate_hz | positive | 0.1-5.0 | 0.3 | Sweep speed in cycles per second |
| Depth_ms | positive | 0.5-5.0 | 2.0 | Modulation intensity in milliseconds |
| Base_delay_ms | positive | 1.0-10.0 | 3.0 | Center delay time in milliseconds |
Stereo Image
| Parameter | Type | Range | Default | Description |
|---|---|---|---|---|
| Stereo_Phase_Offset_deg | positive | 0-360 | 180 | Phase difference between channels in degrees |
Mix & Feedback
| Parameter | Type | Range | Default | Description |
|---|---|---|---|---|
| Feedback | real | -0.9 to +0.9 | 0.7 | Resonance intensity (negative = hollow) |
| Dry_Wet_Mix | positive | 0.0-1.0 | 0.5 | Blend between dry and wet signals |
Output
| 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 |
Applications
Guitar Effects
Use case: Classic flanger tones for electric guitar
Technique: Use "Classic 80s Flanger" with medium settings
Tips:
- Apply to clean or distorted guitar
- Use moderate feedback (0.4-0.6) for traditional sound
- Medium rate (0.3-1.0 Hz) for musical sweeps
- Stereo phase 90-180° for width
Drum Processing
Use case: Adding movement to drums and percussion
Technique: Use fast settings with careful mixing
Settings:
- Fast rate (2-4 Hz) for rhythmic effects
- Low to moderate feedback (0.2-0.5)
- Low mix (0.2-0.4) for subtle enhancement
- Apply to overheads, rooms, or entire drum bus
Result: Adds swirling movement to drum textures
Synth and Sound Design
Use case: Creating metallic, resonant synth textures
Technique: Use high feedback and dramatic settings
Settings:
- High feedback (>0.7) for metallic character
- Slow to medium rates (0.1-1.0 Hz) for evolving textures
- Medium to high mix (0.5-0.8) for prominent effect
- Experiment with negative feedback for hollow sounds
Vocal Effects
Use case: Adding character and movement to vocals
Technique: Use subtle settings with "Deep Throat" preset
Key principles:
- Longer base delays (5-8 ms) for gentle effect
- Low feedback (0.2-0.4) to avoid metallic character
- Low to medium mix (0.3-0.5) to preserve intelligibility
- Subtle stereo phase (45-90°) for gentle width
Result: Vocals gain movement and space without obvious effect
Special Effects Creation
Use case: Sci-fi, mechanical, and extreme sounds
Technique: Use extreme settings from "Slow Jet" or "Liquid Metal"
Creative approaches:
- High positive feedback (>0.8) for intense metallic resonances
- Negative feedback (-0.6 to -0.9) for hollow, phase-cancelled sounds
- Very fast rates (3-5 Hz) for intense fluttering
- High mix (0.7-1.0) for fully processed sound
- Layer multiple flangers with different settings
Practical Workflow Examples
🎸 Guitar Flanger
Goal: Classic flanger on clean guitar
Settings:
- Preset: Classic 80s Flanger
- Adjust rate to match song tempo
- Mix: 0.4-0.6
- Feedback: 0.5-0.7
- Stereo phase: 90-180°
Result: Classic swirling guitar tone
🥁 Drum Movement
Goal: Add motion to drum overheads
Settings:
- Rate: 0.8 Hz
- Depth: 1.2 ms
- Base: 4.0 ms
- Feedback: 0.3
- Mix: 0.25
- Stereo phase: 180°
Result: Subtle swirling movement on drums
👽 Sci-Fi Effect
Goal: Create futuristic sound effect
Settings:
- Preset: Liquid Metal
- Rate: 2.5 Hz
- Feedback: -0.8
- Mix: 0.8
- Apply to synth sweep or noise burst
Result: Hollow, metallic sci-fi effect
Advanced Techniques
Set rate to match song tempo for rhythmic flanging:
- Positive feedback > 0.8: Intense metallic resonances, potential instability
- Negative feedback < -0.8: Extreme phase cancellation, volume drops
- Feedback = 0: Pure comb filtering without resonance emphasis
- Alternating positive/negative: Creates complex, evolving textures
Troubleshooting Common Issues
Cause: Feedback too high, especially with certain source material
Solution: Reduce feedback, try different base delay times
Cause: Negative feedback causing phase cancellation
Solution: Reduce negative feedback, adjust base delay
Cause: Rate too high, depth too extreme
Solution: Lower rate, reduce depth, try different source material
Cause: Mix too low, inappropriate settings for source
Solution: Increase mix, try more extreme settings, use on harmonic content
Technical Deep Dive
Digital Implementation
Modulated Delay Line
The core flanger algorithm uses a modulated delay line with feedback:
Frequency Response Analysis
The flanger creates a comb filter with resonant peaks:
Comparison with Other Modulation Effects
Flanger vs Phaser vs Chorus
| Effect | Delay Range | Filter Type | Character | Key Parameter |
|---|---|---|---|---|
| Flanger | 1-10 ms | Comb filter | Metallic, jet-like | Feedback |
| Phaser | N/A (all-pass) | Notch filter | Sweeping, whooshing | Stage count |
| Chorus | 10-30 ms | Pitch detune | Thickening, ensemble | Delay time |