8-Channel I Ching Form & Speed — User Guide
Algorithmic spatial composition: generates 8 unique audio transformations using I Ching hexagrams as algorithmic rules, creating complex stereo spatialization through form manipulation and speed variations.
What this does
This script implements algorithmic audio transformation using I Ching hexagrams — a unique compositional system that generates 8 parallel audio transformations based on randomly generated I Ching hexagrams. The process: (1) Hexagram Generation: Randomly generates 8 different I Ching hexagrams (6-line binary patterns). (2) Form Manipulation: For each channel, slices the audio into 6 equal segments, reversing segments corresponding to Yin (broken) lines. (3) Speed Variation: Calculates a speed factor from the hexagram's numerical value (0-63), applying time-stretching to each channel. (4) Spatial Combination: Combines the 8 transformed channels into a stereo output using Praat's channel combination algorithm. (5) Visual Display: Draws all 8 hexagrams in a grid layout showing their structure and calculated speed factors.
Key Features:
- 8 Independent Channels — Each processed with unique I Ching rules
- I Ching Algorithmic System — Uses ancient divination system as compositional rules
- Form Manipulation — Reverses audio segments based on Yin/Yang lines
- Speed Variation — Time-stretching based on hexagram numerical value
- Visual Hexagram Display — Shows all 8 generated patterns with speed factors
- Deterministic Randomness — Seed control for reproducible results
- Spatial Audio Output — Combines 8 channels into rich stereo field
- Real-time Processing — Complete transformation in single execution
Technical Implementation: The script creates 8 parallel processing pipelines: (1) Hexagram Calculation: Generates 6 random bits (0=Yin, 1=Yang), calculates value (0-63), maps to speed factor (1.0 ± deviation_range). (2) Form Processing: Splits audio into 6 equal slices, reverses slices where corresponding line=Yin (0), concatenates. (3) Speed Processing: Uses Praat's Lengthen (overlap-add) for time-stretching based on hexagram-derived speed factor. (4) Spatialization: Combines 8 mono channels into stereo using Praat's default channel mapping. (5) Visualization: Draws hexagram grid using Praat's picture window with Yin (broken) and Yang (solid) lines. Key insight: Each hexagram creates a unique "audio DNA" that transforms both the temporal structure (reversals) and temporal rate (speed) of the source material.
Quick start
- In Praat, select exactly one Sound object (any audio file).
- Run script… →
8channel_iching_form_speed.praat. - Set Deviation_range (default 0.20 = ±20% speed variation).
- Set Random_seed (0 for truly random, >0 for reproducible results).
- Set Target_sampling_frequency if resampling needed (default 44100 Hz).
- Click OK — watch hexagram visualization appear in picture window.
- Script processes 8 channels in parallel (monitors progress in console).
- Final stereo output named "originalname_8ch_IChing_FormSpeed" appears and plays.
- Examine picture window to see which hexagrams were generated for each channel.
I Ching System
☯ The I Ching (Book of Changes)
Ancient Chinese divination text — over 3000 years old
64 Hexagrams — 6-line patterns of broken (Yin) and solid (Yang) lines
Binary system — Yin = 0, Yang = 1 (pre-dates binary mathematics)
Cosmological philosophy — Represents dynamic balance of opposites
Algorithmic structure — Mathematical foundation for generative art
Hexagram Structure and Generation
I Ching Philosophical Concepts in Audio
| I Ching Concept | Audio Implementation | Effect on Sound | Philosophical Meaning |
|---|---|---|---|
| Yin (阴) | Segment reversal | Time inversion, retrograde | Receptive, yielding, moon |
| Yang (阳) | Segment forward | Normal temporal flow | Creative, active, sun |
| Hexagram (卦) | 6-segment pattern | Overall form structure | Situation, moment in time |
| Change (易) | Speed variation | Temporal dilation/compression | Constant flux, transformation |
| Balance (平衡) | 8 channels combined | Spatial stereo field | Harmony of opposites |
Hexagram Display and Interpretation
Randomness and Seed Control
Form Manipulation
🎵 Hexagram-Driven Audio Slicing
Segment Division: Audio divided into 6 equal temporal slices
Yin/Yang Mapping: Each slice mapped to corresponding hexagram line
Reversal Logic: Yin lines (0) → reverse slice, Yang lines (1) → forward slice
Recombination: Processed slices concatenated into new temporal form
Slicing Algorithm
Reversal Effects on Different Audio Types
| Audio Type | Forward Segment | Reversed (Yin) Segment | Perceptual Effect | Musical Result |
|---|---|---|---|---|
| Speech | Normal speech | Backwards speech | Uncanny, mysterious | Linguistic deconstruction |
| Melody | Forward phrase | Retrograde melody | Musical palindrome | Serialist technique |
| Percussion | Normal attack-decay | Reverse attack (swell) | Unnatural envelopes | Rhythmic disruption |
| Ambient | Natural evolution | Time-reversed texture | Dreamlike, surreal | Spatial disorientation |
| Noise | Forward noise | Reversed noise | Subtle difference | Minimal transformation |
Form Transformation Examples
- Value: 63
- Speed: Maximum (1 + deviation_range)
- Form: All segments forward (no reversals)
- Result: Original form, sped up
- Character: Forward, accelerated version
- Value: 0
- Speed: Minimum (1 - deviation_range)
- Form: All segments reversed
- Result: Completely reversed, slowed down
- Character: Retrograde, decelerated version
- Value: 21
- Speed: ~1.0 (near normal)
- Form: Forward, reverse, forward, reverse, forward, reverse
- Result: Ping-pong alternation
- Character: Rhythmic alternation between normal and reversed
- Value: 42
- Speed: ~1.13x (with deviation_range=0.20)
- Form: Reverse, forward, reverse, forward, reverse, forward
- Result: Opposite alternation pattern
- Character: Different rhythmic feel from alternating
Perceptual Effects of Form Manipulation
Speed Variation
⏱️ Hexagram-Value-Driven Time Stretching
Value Mapping: Hexagram numerical value (0-63) mapped to speed factor
Range Control: Deviation_range parameter sets maximum speed variation
Pitch Preservation: Overlap-add algorithm changes speed without pitch shift
Temporal Transformation: Each channel plays at unique speed relative to original
Speed Calculation Algorithm
Time-Stretching Implementation
Speed Factor Distribution
| Hexagram Category | Value Range | Speed Range (r=0.20) | Duration Change | Perceptual Character |
|---|---|---|---|---|
| All Yin (000000) | 0 | 0.80x | +25% longer | Slow, stretched, contemplative |
| Yin-dominant | 1-20 | 0.80-0.94x | +6-25% longer | Slowed, relaxed |
| Balanced | 21-42 | 0.94-1.06x | -6% to +6% | Near-normal, stable |
| Yang-dominant | 43-62 | 1.06-1.20x | -17% to -6% shorter | Sped up, energetic |
| All Yang (111111) | 63 | 1.20x | -17% shorter | Fast, compressed, urgent |
Interaction Between Form and Speed
Deviation Range Parameter
- 0.05 (±5%): Subtle variations, good for musical material
- 0.10 (±10%): Noticeable but musical, default for many applications
- 0.20 (±20%): Significant variations, creates clear tempo differences
- 0.30 (±30%): Extreme variations, dramatic tempo contrasts
- 0.50 (±50%): Maximum practical range, half-speed to double-speed
- Small deviation (0.05-0.10): Channels closely synchronized, subtle phasing
- Medium deviation (0.15-0.25): Clear tempo differences, rhythmic complexity
- Large deviation (0.30-0.50): Drastic tempo variations, potentially chaotic
Spatial Composition
🎧 8-Channel to Stereo Spatialization
Channel Generation: 8 independently processed mono channels
Spatial Combination: Praat's Combine to stereo algorithm
Default Mapping: Channels assigned to stereo field automatically
Spatial Complexity: Different forms and speeds create moving sound field
Channel-to-Stereo Mapping
Spatial Effects of Hexagram Variations
| Spatial Effect | Caused By | Perceptual Result | Example Scenario |
|---|---|---|---|
| Temporal phasing | Different speed factors | Sounds move around stereo field | Fast channel left, slow channel right |
| Directional reversal | Different reversal patterns | Sounds "approach" from different directions | Forward segment left, reversed segment right |
| Rhythmic complexity | Combination of all patternsPolyrhythmic spatial patterns | Multiple tempi from multiple positions | |
| Spectral spreading | Different time-stretching artifacts | Different spectral characters in space | Clean sound left, artifact-rich sound right |
| Dynamic movement | Interaction of all factors | Evolving, moving soundscape | Sounds appear to rotate or move through space |
Visual-Spatial Correlation
Spatial Perception Guidelines
- Headphones: Best for hearing precise channel placement
- Stereo speakers: Good for overall spatial field perception
- Close listening: Focus on individual channel characteristics
- Distance listening: Hear overall spatial movement and interaction
- Multiple listens: First pass for overall effect, then focus on specific channels
- Post-process in DAW: Export and apply additional panning/effects
- Multi-speaker setup: Extract individual channels for speaker array
- Binaural processing: Apply HRTF to enhance 3D perception
- Automation: Create piece where spatialization evolves over time
Creative Applications
Algorithmic Composition
🎵 I Ching-Inspired Music
Goal: Create compositions using I Ching as generative system
Workflow:
- Record or create source musical material
- Process with different Random_seed values
- Select most interesting results
- Further process or arrange in DAW
- Create series based on different hexagram sets
Example: Piano piece transformed into 8-channel I Ching spatial composition
Sound Design and Installation
🏛️ Multi-Channel Sound Installation
Goal: Create evolving sound for gallery or public space
Workflow:
- Use field recordings or environmental sounds
- Process with moderate deviation_range (0.15-0.25)
- Extract individual channels for multi-speaker setup
- Install in space with speakers corresponding to hexagram positions
- Add visual display of hexagrams being generated
Example: 8-speaker installation where each speaker plays different hexagram transformation
Educational Tool
🏫 Teaching Algorithmic Art Concepts
Goal: Demonstrate algorithmic composition and I Ching as creative system
Workflow:
- Students record short speech or musical phrase
- Process with script, observe hexagram visualization
- Compare different seeds and deviation ranges
- Discuss I Ching philosophy in algorithmic context
- Create compositions using multiple processed versions
Learning outcomes: Algorithmic thinking, I Ching philosophy, audio processing, spatial composition
Spiritual/Meditative Audio
☯️ I Ching Meditation Soundscapes
Goal: Create meditative audio experiences based on I Ching wisdom
Workflow:
- Use calming source material (singing bowls, nature sounds, chanting)
- Process with small deviation_range (0.05-0.10) for subtle variations
- Consult I Ching for specific hexagrams of interest
- Manually set hexagrams (modify script) for desired transformations
- Create series corresponding to different I Ching concepts
Example: "Hexagram 1: The Creative" - all Yang, fast, forward transformation
Advanced Creative Techniques
- Process source with script → Result A
- Use Result A as new source → Result B
- Repeat multiple times
- Creates deeply transformed, complex results
- Example: Speech → I Ching → Result as source → I Ching again
- Process different sources with same hexagram set
- Mix results
- Creates unified transformation of disparate materials
- Example: Process speech, music, and field recordings with same 8 hexagrams
- Create piece where deviation_range changes over time
- Start with small variations, increase to large, return to small
- Creates journey through parameter space
- Example: 10-minute piece where deviation_range sweeps 0.05 → 0.30 → 0.05
Troubleshooting Common Issues
Causes: Large deviation_range, complex source material, many reversals
Solutions: Decrease deviation_range (0.05-0.15), use simpler source, check hexagrams for reversal density
Causes: Noisy/percussive source material, extreme speed factors
Solutions: Use pitched/musical sources, reduce deviation_range, try different source material
Causes: Similar hexagrams across channels, small speed differences
Solutions: Use different Random_seed, increase deviation_range, check hexagram visualization for diversity
Causes: Long source audio, Praat's overlap-add algorithm complexity
Solutions: Use shorter source (1-2 minutes), pre-cut to length, use faster computer
Performance Optimization
| Scenario | Source Length | Deviation Range | Processing Time | Result Character |
|---|---|---|---|---|
| Quick test | 15-30 seconds | 0.10-0.15 | 30-60 seconds | Clear transformation, fast processing |
| Standard composition | 1-2 minutes | 0.15-0.25 | 2-5 minutes | Substantial material, good variation |
| Installation piece | 3-5 minutes | 0.10-0.20 | 5-15 minutes | Long-form, evolving |
| Extreme processing | 5-10 minutes | 0.25-0.40 | 15-30+ minutes | Maximum transformation, long processing |