Golden Ratio Processor — User Guide
Mathematical audio transformation: applies the Golden Ratio (φ = 1.618...) to pitch, intensity, spectral, and spatial parameters for harmonically balanced sound design.
What this does
This script implements Golden Ratio audio processing — applying mathematical proportions derived from φ (1.618...) to multiple aspects of sound. The processor transforms audio by imposing φ-based relationships on pitch contours, intensity envelopes, spectral characteristics, and stereo imaging, creating harmonically balanced transformations that follow natural proportional relationships.
Key Features:
- 6 Processing Modules — Pitch, intensity, spectral scaling, spectral filtering, micro-modulation, and golden panning
- 3 Intensity Presets — Subtle, Standard, and Pronounced φ influence
- Golden Time Division — Automatically divides duration into φ-proportioned sections
- Climax Point Detection — Places emphasis at 0.618 (φ⁻¹) of total duration
- Stereo Bloom Effect — Creates φ-proportioned stereo width evolution
- Visual Feedback — Shows input, golden panning architecture, and output
- Mathematical Precision — Exact φ-based transformations (1.618033988749895)
Technical Implementation: (1) Analysis Phase: Extract pitch, intensity, and spectral characteristics from input. (2) Golden Division: Calculate T₁ = duration × φ⁻¹ (≈0.618) and T₂ = duration - T₁. Climax at T₁. (3) Module Processing: Apply φ-proportioned transformations to selected parameters. (4) Integration: Combine processed components into final output. (5) Visualization: Display original, golden panning architecture, and processed result. Key insight: Audio parameters evolve proportionally to φ relationships, with climax at golden section point (0.618 of duration).
Quick start
- In Praat, select exactly one Sound object (mono or stereo).
- Run script… → select
Golden_Ratio_Processor.praat. - Choose Preset intensity: Subtle, Standard, or Pronounced.
- Enable desired processing modules (pitch, intensity, spectral, filtering, panning, modulation).
- Set analysis parameters (pitch floor/ceiling, time step) if needed.
- Enable Draw_visualization for graphical feedback.
- Enable Play_result for immediate audition.
- Click OK — processor analyzes, transforms, creates "original_GoldenRatio_preset" sound object.
Golden Ratio Theory
The Golden Ratio φ
Golden Section in Time
φ-Derived Audio Parameters
📐 Pitch Architecture
Formula: pitch_factor = 1 ± scaling_strength × (φ - 1)
Development (0→T₁): Linear increase from 1 to upper_pitch_factor
Resolution (T₁→T): Linear decrease to lower_pitch_factor
Range: Clamped to pitch_floor_Hz – pitch_ceiling_Hz
Effect: Pitch contour follows golden proportion evolution
📈 Intensity Structure
Formula: intensity = baseline ± deviation × φ factors
Peak: baseline + deviation × (φ - 1) at climax
Troughs: baseline - deviation × φ⁻¹ at start/end
Evolution: Linear interpolation between these points
Effect: Natural dynamic contour peaking at golden section
🎚️ Spectral Scaling
Formula: spectral_ratio = 1 + (φ - 1) × scaling_strength
Implementation: Resample at rate × ratio, then back to original rate
Effect: Subtle spectral warp upward by φ factor
Preset scaling: Subtle=×1.185, Standard=×1.371, Pronounced=×1.618
Golden Panning Architecture
Micro-Modulation (Vibrato Cascade)
Processing Components
Module 1: Pitch Architecture
🎵 φ-Proportioned Pitch Contours
Function: Applies time-varying pitch scaling based on golden section timing
Parameters:
- Upper pitch factor: 1 + scaling_strength × (φ - 1)
- Lower pitch factor: 1 - scaling_strength × (1 - φ⁻¹)
- Progression: Linear scaling during each section
Effect: Pitch rises to climax, then descends, following φ proportion
Use when: Processing melodic material, vocals, instruments
Module 2: Intensity Structure
📊 Golden Dynamic Envelope
Function: Imposes φ-proportioned amplitude envelope peaking at climax
Parameters:
- Peak intensity: mean + 2×stddev × (φ - 1)
- Soft intensity: mean - 2×stddev × φ⁻¹
- Envelope: Piecewise linear between these points
Effect: Natural-sounding dynamics with emphasized climax
Use when: Adding dramatic shape to flat recordings
Module 3: Spectral Scaling
🎚️ Global Spectral Warp
Function: Applies gentle spectral scaling by φ factor
Implementation: Resampling with golden ratio, then back to original rate
Parameters:
- Spectral ratio: 1 + (φ - 1) × scaling_strength
- Resampling quality: 50-point interpolation
Effect: Subtle brightening/timbre shift upward by φ proportion
Use when: Enhancing spectral balance, adding "golden" sheen
Module 4: Spectral Filtering
🔊 φ-Scaled Bandwidth
Function: Gentle bandpass filtering with φ-proportioned bandwidth
Parameters:
- Low anchor: max(100, mean_f0 × 0.5)
- High anchor: min(Nyquist×0.9, 5000)
- Bandwidth expansion: ±30% of range × scaling_strength
- Smoothing: 20–50 Hz based on strength
Effect: Gentle spectral focus around fundamental regions
Use when: Cleaning/coloring noisy recordings
Module 5: Micro-Modulation
🎛️ φ-Cascade Vibrato
Function: Adds dual-rate pitch modulation with φ-related frequencies
Parameters:
- Primary rate: mean_f0 / (φ × 40)
- Secondary rate: primary × φ⁻¹ (golden ratio)
- Depth: 20 × scaling_strength cents
- Mix ratio: 1:0.5 (primary:secondary)
Effect: Rich, natural-sounding vibrato with golden harmonics
Use when: Adding warmth/expression to sterile recordings
Module 6: Golden Panning
🎧 Stereo Width Bloom
Function: Creates evolving stereo image peaking at climax
Parameters:
- Width envelope: Expands to full at climax, contracts thereafter
- Panning speed: Accelerates to φ×base at climax, decelerates after
- Base speed: 0.5/φ ≈ 0.309 cycles/second
- Climax speed: 0.5×φ ≈ 0.809 cycles/second
Effect: "Bloom" — stereo image expands and becomes most active at golden section
Use when: Creating spatial interest, emphasizing climax points
Preset Intensity Levels
| Preset | Scaling Strength | Spectral Ratio | Vibrato Depth | Character |
|---|---|---|---|---|
| Subtle | 0.3 | 1.185 | 6 cents | Gentle enhancement |
| Standard | 0.6 | 1.371 | 12 cents | Balanced transformation |
| Pronounced | 1.0 | 1.618 | 20 cents | Strong φ influence |
Processing Workflow
Phase 1: Global Analysis
Phase 2: Golden Time Structure
Phase 3: φ-Derived Target Calculation
Phase 4: Sequential Module Processing
Phase 5: Visualization & Output
Applications
Musical Enhancement
Use case: Adding natural-sounding expression to recordings
Technique: Standard preset with pitch + intensity + panning
Example workflow:
- Vocal recording: Adds expressive pitch contour, dynamic shape, spatial interest
- Instrumental solo: Enhances climax, adds subtle vibrato, creates stereo bloom
- Ambient pad: Spectral scaling adds "golden" sheen, panning creates movement
Sound Design
Use case: Creating evolving textures with mathematical structure
Technique: Pronounced preset with all modules enabled
Applications:
- Film sound design: Golden proportion creates "natural" evolution
- Game audio: Procedural variation with mathematical basis
- Electronic music: Adds organic movement to synthetic sounds
Audio Restoration
Use case: Enhancing old or flat recordings
Technique: Subtle preset with spectral filtering + intensity
Advantages:
- Adds natural dynamics without sounding processed
- Spectral filtering cleans without aggressive EQ
- Golden proportions feel "right" to human perception
Educational Demonstration
Use case: Teaching golden ratio in audio context
Technique: Enable visualization, process simple tones
Learning outcomes:
- Hear φ proportions in pitch and dynamics
- See golden section in waveform display
- Understand mathematical audio processing
Compositional Tool
Use case: Applying golden proportions to composed material
Technique: Custom parameter combinations
Workflow:
- Process individual tracks with different module combinations
- Layer processed versions for rich textures
- Use as effect send for parallel processing
- Automate preset changes for evolving transformations
Practical Workflow Examples
🎵 Vocal Enhancement (Pop/Rock)
Goal: Add professional expression to lead vocal
Settings:
- Preset: Standard (balanced transformation)
- Modules: Pitch, Intensity, Golden Panning
- Analysis: Pitch_floor_Hz=75, Pitch_ceiling_Hz=600
- Disable: Spectral scaling, filtering, modulation
Result: Vocal gains natural dynamic contour, slight pitch expression, subtle stereo movement at climax
🎚️ Ambient Texture Creation
Goal: Generate evolving pad from simple source
Settings:
- Preset: Pronounced (strong φ influence)
- Modules: All enabled
- Source: Simple sine wave or noise burst
- Duration: 30+ seconds for slow evolution
Result: Rich, evolving texture with spectral warping, modulation, and spatial bloom
🔊 Drum Processing (Experimental)
Goal: Add organic movement to rhythmic material
Settings:
- Preset: Subtle (gentle influence)
- Modules: Intensity, Spectral filtering, Golden Panning
- Disable: Pitch (unpitched material)
- Adjust: Pitch_floor_Hz=50 for low frequency analysis
Result: Drums gain dynamic shape, spectral focus, and subtle stereo animation
Troubleshooting Common Issues
Cause: Input has undefined pitch (noise, drums, consonants)
Solution: Disable pitch architecture module, or adjust pitch floor/ceiling
Cause: Spectral scaling combined with other modules
Solution: Reduce scaling strength, or disable spectral scaling
Cause: Golden panning with very short or very long material
Solution: Adjust panning speed base (modify script), or disable panning
Cause: Many modules enabled on long file
Solution: Disable unneeded modules, reduce time_step_s (0.02 instead of 0.01)
Advanced Techniques
- Pitch + Intensity only: Natural expression without spectral changes
- Spectral + Filtering only: Timbre enhancement without pitch effects
- Panning + Modulation only: Spatial animation without fundamental changes
- All modules subtle: Holistic gentle enhancement
- Single module pronounced: Focused strong effect
Different combinations create distinctly different transformation characters
- Vocals: Enable pitch, intensity, panning (disable spectral if wanting natural)
- Instruments: All modules can work well (adjust based on instrument)
- Percussion: Disable pitch, enable intensity and panning
- Pads/Textures: Enable all modules for maximal transformation
- Full mixes: Use subtle preset, careful with spectral changes