Fractal Pitch Terrain Effect — User Guide
Mathematical landscape generation: creates complex pitch contours using fractal algorithms for organic, terrain-like pitch variations.
What this does
This script implements fractal pitch terrain generation — an algorithmic approach to creating organic, landscape-like pitch contours using fractal mathematics. Generates complex pitch variations through multiple iterative layers, each contributing different frequency components to create rich, natural-sounding pitch topographies. Process builds fractal curves through wave mixing, chaos injection, and time evolution, then applies them to audio via pitch manipulation.
Key Features:
- 8 Terrain Presets — From gentle hills to chaotic mountains
- Multi-Layer Fractals — 4-10 iterative layers for complexity
- Waveform Mixing — Sine and square wave combinations
- Chaos Injection — Controlled randomness for natural variation
- Time Evolution — Dynamic terrain changes over duration
- Golden Ratio Scaling — Musically pleasing frequency relationships
Quick start
- Select Sound object in Praat (monophonic content works best)
- Run
fractal_pitch_terrain.praat - Choose preset for immediate terrain types
- Adjust iterations (4-10) for fractal detail level
- Set pitch_depth (4-35 semitones) for variation range
- Configure chaos_factor (0.05-0.8) for randomness
- Click OK — fractal terrain applied to "originalname_fractal_result"
Fractal Theory
Multi-Layer Fractal Algorithm
🧩 Iterative Layer Construction
Core algorithm: Multiple layers with decaying amplitude and increasing frequency
Result: Self-similar patterns across multiple frequency scales
Mathematical Components
| Parameter | Role | Effect |
|---|---|---|
| iterations | Fractal depth | More iterations = more detailed terrain |
| amplitude_decay | Layer attenuation | Higher = faster decay of high-frequency layers |
| frequency_multiplier | Scale progression | Golden ratio (2.618) for musical relationships |
| chaos_factor | Randomness | Adds natural variation and uniqueness |
| sine_mix / square_mix | Waveform character | Sine = smooth, Square = jagged terrain |
Terrain Presets
| Preset | Iterations | Pitch Depth | Chaos | Character |
|---|---|---|---|---|
| Gentle Fractal | 4 | 8 st | 0.1 | Smooth hills, subtle variations |
| Complex Terrain | 7 | 18 st | 0.25 | Balanced mountains and valleys |
| Chaotic Mountains | 8 | 25 st | 0.6 | Extreme peaks, dramatic drops |
| Micro Fractal | 5 | 4 st | 0.05 | Fine details, subtle texture |
| Rhythmic Layers | 6 | 12 st | 0.15 | Pulsing, beat-like patterns |
| Evolving Landscape | 7 | 20 st | 0.2 | Progressive terrain changes |
| Extreme Chaos | 10 | 35 st | 0.8 | Wild, unpredictable variations |
🎵 Musical Applications
Gentle Fractal: Vocal expression, subtle pitch variations
Complex Terrain: Sound design, experimental vocals
Rhythmic Layers: Electronic music, percussive effects
Evolving Landscape: Film scoring, narrative progression