Golden-Chaos Vibrato Effect — User Guide
Mathematical elegance meets audio processing: creates never-repeating vibrato patterns using nested modulations driven by fundamental irrational constants—π (pi), φ (phi), and e (Euler's number)—for perfectly irregular, musically rich pitch modulation.
What this does
This script implements a mathematically-driven vibrato effect that uses fundamental irrational constants as modulation sources to create complex, never-repeating pitch variations. Unlike traditional vibrato with simple periodic modulation, this effect combines three of mathematics' most important constants—π (pi), φ (golden ratio), and e (Euler's number)—in nested sine waves to generate quasi-periodic patterns that are both musically coherent and mathematically elegant. The result is vibrato that feels organic and natural while being generated from pure mathematical principles.
Key Features:
- 6 Mathematical Presets — From golden ratio shimmer to full mathematical chaos
- Irrational Constant Modulation — π, φ, and e as frequency sources
- Nested Sine Architecture — Complex modulation through sine-of-sine patterns
- Perfect Irregularity — Never-repeating patterns due to irrational ratios
- Mathematical Purity — No random elements, only deterministic chaos
- Stereo Preservation — Maintains original channel configuration
Technical Implementation: (1) Safety renaming: Prevents Praat formula errors by using explicit object references. (2) Nested modulation: Creates delay = base × (1 + depth × sin(2π×rate1×t + mix2×sin(2π×rate2×t) + mix3×sin(2π×rate3×t))). (3) Irrational frequencies: Uses mathematical constants to ensure non-repeating patterns. (4) Boundary protection: Ensures delay indices stay within valid sample range. (5) Stereo handling: Preserves original channel arrangement through row-based processing.
Quick start
- In Praat, select exactly one Sound object (mono or stereo).
- Run script… →
golden_chaos_vibrato_effect.praat. - Choose a Preset or select "Custom" to adjust parameters manually.
- Adjust Delay Parameters:
- Base_delay_ms: Center delay time (4-12 ms)
- Modulation_depth: Vibrato intensity (0.05-0.25)
- Set Modulation Rates using mathematical constants:
- Rate1_hz: Primary rate (often π, φ, or e)
- Rate2_hz: Secondary rate (related constant)
- Rate3_hz: Tertiary rate (completing the set)
- Adjust Mixing Ratios for complexity control.
- Click OK — effect applied, result named "originalname_chaos".
Mathematical Theory
Nested Modulation Architecture
The Core Algorithm
The effect uses a sophisticated nested sine structure:
🎵 Why Nested Modulation?
Simple vibrato: sin(2πft) → pure, repetitive sine wave
Nested vibrato: sin(2πft + mix×sin(2πgt)) → complex, evolving shape
Mathematical result: The nested structure creates frequency modulation (FM) sidebands, producing rich harmonic spectra in the modulation waveform itself
Irrational Frequency Relationships
Non-Repeating Patterns
The key to natural-sounding vibrato is irrational ratios:
Quasi-Periodicity
Short term (0-10 seconds): Appears to have clear pattern
Medium term (10-60 seconds): Pattern evolves noticeably
Long term (>60 seconds): No exact repetition ever occurs
Very long term: Eventually explores all possible phases
Musical implication: The vibrato feels familiar yet constantly fresh, avoiding the mechanical quality of simple periodic modulation
Mathematical Beauty
✨ The Trinity of Constants
π (Pi) ≈ 3.14159
- Represents circular motion and cycles
- Connects linear and rotational motion
- In vibrato: provides the fundamental oscillation
φ (Golden Ratio) ≈ 1.61803
- Represents optimal growth and proportion
- Appears throughout nature and art
- In vibrato: creates most uniform phase distribution
e (Euler's Number) ≈ 2.71828
- Represents natural growth and decay
- Fundamental to calculus and complex analysis
- In vibrato: adds asymmetric, evolving character
Together, these constants create vibrato that is mathematically optimal and aesthetically pleasing.
Irrational Constants
The Golden Ratio (φ)
📐 φ = (1 + √5)/2 ≈ 1.61803
Mathematical definition: The positive solution to x² = x + 1
Unique properties:
- Most irrational number:最难被有理数逼近的数
- Self-similar: 1/φ = φ - 1 ≈ 0.61803
- Fibonacci connection: Ratio of consecutive Fibonacci numbers approaches φ
- Optimal spacing: Creates most uniform distribution of points on a circle
In vibrato applications:
- Creates maximally non-repeating patterns
- Produces smooth, organic-sounding modulation
- Prevents beating or periodic reinforcements
- Golden ratio multiples (φ, 2φ, φ/2) maintain optimal properties
Pi (π) and Euler's Number (e)
π ≈ 3.14159 - The Circle Constant
e ≈ 2.71828 - The Natural Growth Constant
Mathematical Relationships
Beautiful Equations Connecting the Constants
Optimal Frequency Selection
Golden Shimmer: φ-based frequencies (1.618, 3.236, 0.618)
Note: 3.236 ≈ 2φ, 0.618 ≈ 1/φ
Euler's Wobble: e-based frequencies (2.718, 5.436, 1.0)
5.436 ≈ 2e, 1.0 provides integer anchor
Pi Cycle: π-based frequencies (3.14159, 6.28318, 1.57079)
6.28318 = 2π, 1.57079 = π/2
Mathematical Chaos: All three constants at once
Maximum complexity and non-repetition
Effect Presets
Golden Shimmer (Phi driven)
🌟 Smooth Organic Vibrato
Settings: Base: 5.0 ms, Depth: 0.08, Rates: 1.618/3.236/0.618 Hz, Mix: 0.3/0.5
Character: Smooth, organic vibrato with golden ratio proportions
Best for: Vocals, strings, natural instrument enhancement
Euler's Wobble (e driven)
📈 Asymmetric Natural Motion
Settings: Base: 7.0 ms, Depth: 0.15, Rates: 2.718/5.436/1.0 Hz, Mix: 0.8/0.2
Character: Asymmetric, evolving vibrato with natural growth character
Best for: Experimental sounds, evolving textures
Pi Cycle (Pi driven)
🔄 Classic Circular Motion
Settings: Base: 6.0 ms, Depth: 0.12, Rates: 3.14159/6.28318/1.57079 Hz, Mix: 0.2/0.1
Character: Classic vibrato character with circular motion patterns
Best for: Traditional instruments, straightforward vibrato
Mathematical Chaos (Full Mix)
🎲 Maximum Complexity
Settings: Base: 8.0 ms, Depth: 0.20, Rates: 3.14159/2.71828/1.61803 Hz, Mix: 1.0/1.0
Character: Complex, evolving patterns using all three constants
Best for: Sound design, experimental music
Subtle Irregularity
💫 Gentle Enhancement
Settings: Base: 4.0 ms, Depth: 0.05, Rates: 3.14159/2.71828/1.61803 Hz, Mix: 0.5/0.5
Character: Very subtle vibrato that adds life without obvious effect
Best for: Background elements, subtle vocal enhancement
Deep Math Texture
🌊 Slow Evolution
Settings: Base: 12.0 ms, Depth: 0.25, Rates: 0.314/0.271/0.161 Hz, Mix: 0.7/0.7
Character: Slow, deep vibrato with complex evolving texture
Best for: Pads, atmospheric sounds, deep textures
| Preset | Base (ms) | Depth | Rate1 (Hz) | Rate2 (Hz) | Rate3 (Hz) | Mix2 | Mix3 | Character |
|---|---|---|---|---|---|---|---|---|
| Golden Shimmer | 5.0 | 0.08 | 1.618 | 3.236 | 0.618 | 0.3 | 0.5 | Smooth, organic |
| Euler's Wobble | 7.0 | 0.15 | 2.718 | 5.436 | 1.0 | 0.8 | 0.2 | Asymmetric, evolving |
| Pi Cycle | 6.0 | 0.12 | 3.14159 | 6.28318 | 1.57079 | 0.2 | 0.1 | Classic, circular |
| Math Chaos | 8.0 | 0.20 | 3.14159 | 2.71828 | 1.61803 | 1.0 | 1.0 | Complex, evolving |
| Subtle Irregularity | 4.0 | 0.05 | 3.14159 | 2.71828 | 1.61803 | 0.5 | 0.5 | Gentle, natural |
| Deep Math Texture | 12.0 | 0.25 | 0.314 | 0.271 | 0.161 | 0.7 | 0.7 | Slow, deep |
Parameters
Delay Parameters
| Parameter | Type | Range | Default | Description |
|---|---|---|---|---|
| Base_delay_ms | positive | 3.0-15.0 | 6.0 | Center delay time in milliseconds |
| Modulation_depth | positive | 0.05-0.25 | 0.14 | Intensity of pitch modulation |
Modulation Rates
| Parameter | Type | Range | Default | Description |
|---|---|---|---|---|
| Rate1_hz | positive | 0.1-10.0 | 3.14159 | Primary modulation rate (π) |
| Rate2_hz | positive | 0.1-10.0 | 2.71828 | Secondary modulation rate (e) |
| Rate3_hz | positive | 0.1-10.0 | 1.61803 | Tertiary modulation rate (φ) |
Mixing Ratios
| Parameter | Type | Range | Default | Description |
|---|---|---|---|---|
| Rate2_mix | positive | 0.0-1.0 | 0.6 | Secondary rate mixing amount |
| Rate3_mix | positive | 0.0-1.0 | 0.4 | Tertiary rate mixing amount |
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 Interactions
Base_delay_ms × Modulation_depth: Determines pitch variation range
Typical: 6ms × 0.14 = ±0.84ms variation → moderate vibrato
Rate ratios: Irrational ratios prevent pattern repetition
π : e : φ ≈ 1.16 : 1 : 0.60 (all irrational ratios)
Mix values: Control complexity of modulation waveform
Low mixes (0.1-0.3): Subtle complexity
High mixes (0.7-1.0): Rich, complex patterns
Rate ranges:
0.1-1.0 Hz: Very slow, evolving modulation
1.0-3.0 Hz: Natural vibrato range
3.0-6.0 Hz: Fast, intense vibrato
6.0-10.0 Hz: Very fast, special effects
Applications
Vocal Enhancement
Use case: Adding natural-sounding vibrato to sustained vocals
Technique: Use golden ratio-based presets for organic character
Settings:
- Golden Shimmer or Pi Cycle presets
- Moderate modulation_depth (0.08-0.12)
- Natural vibrato rates (5-7 Hz equivalent)
- Apply to sustained notes or phrases
Result: Vocals with rich, natural-sounding vibrato that never feels mechanical
String Instrument Realism
Use case: Enhancing sampled or synthetic string instruments
Technique: Use subtle irregularity with appropriate rates
Settings:
- Subtle Irregularity preset as starting point
- Adjust rates for instrument character (violin vs cello)
- Use lower modulation_depth for ensemble sounds
- Higher modulation_depth for solo instruments
Result: String sounds with authentic, non-repeating vibrato character
Sound Design and Textures
Use case: Creating evolving textures from static sounds
Technique: Use extreme settings for dramatic effects
Settings:
- Mathematical Chaos or Deep Math Texture presets
- High modulation_depth (0.2-0.25) for strong effect
- Unusual rate combinations for unique patterns
- Apply to pads, drones, or synthetic sounds
Result: Constantly evolving textures with mathematical complexity
Experimental Music Composition
Use case: Exploring mathematical structures in music
Technique: Systematic parameter exploration
Approaches:
- Use different mathematical constants for different voices
- Create canons using phase-shifted versions
- Explore the boundary between order and chaos
- Use the effect as a compositional device
Result: Music with embedded mathematical relationships
Practical Workflow Examples
🎤 Natural Vocal Vibrato
Goal: Add believable vibrato to sustained vocal notes
Settings:
- Preset: Golden Shimmer
- Increase base_delay_ms to 6.5 for slightly deeper vibrato
- Reduce rate2_mix to 0.2 for simpler pattern
- Apply only to sustained vowel sections
Result: Natural-sounding vocal vibrato
🎻 String Section Enhancement
Goal: Add life to sampled string section
Settings:
- Preset: Subtle Irregularity
- Reduce modulation_depth to 0.04 for ensemble effect
- Use rates around 1.5-2.5 Hz for slower string vibrato
- Apply to entire string section mix
Result: More lively, authentic string section
🌌 Evolving Pad Texture
Goal: Transform static pad into evolving texture
Settings:
- Preset: Deep Math Texture
- Increase modulation_depth to 0.3 for stronger effect
- Use very slow rates (0.1-0.5 Hz) for gradual evolution
- Apply to synth pad or drone
Result: Constantly evolving pad texture
Advanced Techniques
- Apply multiple passes with different constants
- First pass: π-based for fundamental vibration
- Second pass: φ-based for organic irregularity
- Third pass: e-based for evolving character
- Creates incredibly rich, multi-dimensional vibrato
- Try other mathematical constants: √2, √3, γ (Euler-Mascheroni)
- Explore transcendental vs algebraic irrationals
- Use continued fraction approximations
- Create custom mathematical relationships
Troubleshooting Common Issues
Cause: Too high modulation_depth, extreme rates, or complex source material
Solution: Reduce modulation_depth, use more moderate rates, try simpler source sounds
Cause: Too low modulation_depth, inappropriate rates for material
Solution: Increase modulation_depth, adjust rates for source character
Cause: Rational rate ratios causing pattern repetition
Solution: Use irrational constants, ensure proper decimal precision
Cause: Object naming conflicts (script includes safety measures)
Solution: The script automatically handles renaming—ensure you're using latest version
Technical Deep Dive
Algorithm Implementation
Nested Sine Computation
The core formula uses efficient nested evaluation:
Computational Efficiency
Computational load: Moderate - three sine evaluations per sample
Memory usage: Minimal - processes samples in place
Real-time potential: Good - efficient trigonometric operations
Optimization approaches:
- Uses Praat's optimized vector operations
- Single formula evaluation for entire sound
- Efficient boundary checking
- Minimal temporary object creation
Suitable for real-time implementation with lookup tables
Mathematical Foundations
Number Theory Basis
Phase Space Analysis
Psychoacoustic Considerations
Perception of Complex Vibrato
Human perception research:
Vibrato rate preference: 5-7 Hz generally most pleasing
Vibrato depth: ±0.5-2% of fundamental frequency optimal
Irregularity perception: Humans prefer slightly irregular vibrato
Natural vs synthetic: Natural vibrato always contains irregularities
This effect's advantages:
- Provides optimal irregularity through mathematical guarantee
- Avoids the "machine gun" effect of periodic modulation
- Creates the perception of "living" sound
- Matches natural vibrato complexity without randomness
Vibrato rate preference: 5-7 Hz generally most pleasing
Vibrato depth: ±0.5-2% of fundamental frequency optimal
Irregularity perception: Humans prefer slightly irregular vibrato
Natural vs synthetic: Natural vibrato always contains irregularities
This effect's advantages:
- Provides optimal irregularity through mathematical guarantee
- Avoids the "machine gun" effect of periodic modulation
- Creates the perception of "living" sound
- Matches natural vibrato complexity without randomness