Fractal Pitch Terrain Effect — User Guide

Mathematical landscape generation: creates complex pitch contours using fractal algorithms for organic, terrain-like pitch variations.

Author: Shai Cohen Affiliation: Department of Music, Bar-Ilan University, Israel Version: 0.1 (2025) License: MIT License Repo: https://github.com/ShaiCohen-ops/Praat-plugin_AudioTools
Contents:

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:

What are fractal pitch terrains? Traditional pitch effects: vibrato, glides, automation. Fractal terrains: mathematically-generated pitch contours that mimic natural formations through self-similar patterns across multiple scales. Advantages: (1) Organic quality: Natural-sounding variations rather than mechanical patterns. (2) Complexity control: Precise control over detail level via iterations. (3) Musical relationships: Golden ratio and harmonic frequency progressions. (4) Evolution over time: Dynamic changes create narrative progression. (5) Infinite variety: Chaos factors ensure unique results. Use cases: Experimental vocals, sound design landscapes, algorithmic composition, film scoring, generative art.

Quick start

  1. Select Sound object in Praat (monophonic content works best)
  2. Run fractal_pitch_terrain.praat
  3. Choose preset for immediate terrain types
  4. Adjust iterations (4-10) for fractal detail level
  5. Set pitch_depth (4-35 semitones) for variation range
  6. Configure chaos_factor (0.05-0.8) for randomness
  7. Click OK — fractal terrain applied to "originalname_fractal_result"
Quick tip: Start with Complex Terrain preset for balanced results. Use Gentle Fractal for subtle variations, Chaotic Mountains for extreme effects. Higher iterations create more detailed terrains but increase processing time. Moderate chaos_factor (0.2-0.4) adds natural variation without losing musicality.

Fractal Theory

Multi-Layer Fractal Algorithm

🧩 Iterative Layer Construction

Core algorithm: Multiple layers with decaying amplitude and increasing frequency

FOR iteration from 1 to iterations: current_amplitude = 1 * (amplitude_decay ^ iteration) current_frequency = base_frequency * (frequency_multiplier ^ iteration) sine_component = sin(wave_phase) square_component = sign(sin(wave_phase)) combined_wave = sine_mix * sine + square_mix * square chaos_component = chaos_factor * random_variation layer_value = current_amplitude * (combined_wave + chaos_component) pitch_sum = pitch_sum + layer_value

Result: Self-similar patterns across multiple frequency scales

Mathematical Components

ParameterRoleEffect
iterationsFractal depthMore iterations = more detailed terrain
amplitude_decayLayer attenuationHigher = faster decay of high-frequency layers
frequency_multiplierScale progressionGolden ratio (2.618) for musical relationships
chaos_factorRandomnessAdds natural variation and uniqueness
sine_mix / square_mixWaveform characterSine = smooth, Square = jagged terrain

Terrain Presets

PresetIterationsPitch DepthChaosCharacter
Gentle Fractal48 st0.1Smooth hills, subtle variations
Complex Terrain718 st0.25Balanced mountains and valleys
Chaotic Mountains825 st0.6Extreme peaks, dramatic drops
Micro Fractal54 st0.05Fine details, subtle texture
Rhythmic Layers612 st0.15Pulsing, beat-like patterns
Evolving Landscape720 st0.2Progressive terrain changes
Extreme Chaos1035 st0.8Wild, 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

Applications

Creative Sound Design

Vocal Processing: Apply Gentle Fractal to singing for organic pitch variations that mimic natural vocal expressivity without mechanical vibrato patterns.
Instrument Transformation: Use Complex Terrain on sustained instruments to create evolving pitch landscapes that shift and change over time.
Generative Composition: Combine Extreme Chaos with time-based parameter automation to create ever-changing pitch structures for algorithmic music.

Technical Considerations

Processing Time: Higher iteration counts (8+) with long audio files may require significant computation. Start with shorter segments for experimentation.
Monophonic Content: Works best with single-line melodies or solo instruments. Polyphonic material may produce unpredictable results.
Parameter Exploration: Enable keep_intermediate_objects to examine the generated pitch curves and understand how different parameters affect the fractal terrain.