Chord Generator from Audio — User Guide
Harmonic expansion: generates musical chords from any audio source using precise pitch shifting and duration manipulation to create rich harmonic textures.
What this does
This script implements chord generation from audio — a harmonic processing technique that creates musical chords from any monophonic audio source. Generates multiple pitch-shifted copies of the original sound, each tuned to specific chord intervals, then combines them into rich harmonic structures. Process uses sophisticated duration-tier manipulation to maintain audio quality while achieving precise musical intervals.
Key Features:
- 8 Chord Types — Major, minor, suspended, extended chords
- Precise Intonation — Exact musical intervals using semitone ratios
- Quality Preservation — Duration manipulation maintains audio character
- Volume Control — Individual note level adjustment
- Automatic Mono Conversion — Handles stereo sources seamlessly
- Clean Processing — Automatic cleanup of intermediate objects
Quick start
- Select Sound object in Praat (monophonic works best)
- Run
chord_generator_from_audio.praat - Choose chord_type from 8 available options
- Adjust volume_each_note (0.1-1.0) for individual note levels
- Click OK — chord is generated and played automatically
- Result appears as new stereo Sound object
Chord Theory
Pitch Shifting Mathematics
🎵 Semitone Ratio Calculation
Precise frequency ratios for equal temperament:
Duration Manipulation Technique
⏱️ Advanced Time Stretching
Duration tier manipulation for quality preservation:
Chord Construction System
| Processing Stage | Function | Result |
|---|---|---|
| Root Note | Original audio copy | Foundation pitch |
| Third Note | Pitch shifted by chord-specific interval | Chord quality (major/minor) |
| Fifth Note | Pitch shifted by perfect fifth interval | Harmonic stability |
| Seventh Note | Pitch shifted by seventh interval (7th chords) | Chord extension |
| Mixing | Combine all notes to stereo | Final chord sound |
Available Chords
| Chord Type | Intervals (semitones) | Notes | Character |
|---|---|---|---|
| Major | 0, 4, 7 | Root, Major 3rd, Perfect 5th | Bright, happy, stable |
| Minor | 0, 3, 7 | Root, Minor 3rd, Perfect 5th | Dark, sad, melancholic |
| Sus2 | 0, 2, 7 | Root, Major 2nd, Perfect 5th | Open, ambiguous, folk |
| Sus4 | 0, 5, 7 | Root, Perfect 4th, Perfect 5th | Suspended, tense, resolving |
| Diminished | 0, 3, 6 | Root, Minor 3rd, Diminished 5th | Dissonant, tense, mysterious |
| Augmented | 0, 4, 8 | Root, Major 3rd, Augmented 5th | Dreamy, unstable, surreal |
| Major7 | 0, 4, 7, 11 | Root, Major 3rd, Perfect 5th, Major 7th | Jazzy, sophisticated, warm |
| Minor7 | 0, 3, 7, 10 | Root, Minor 3rd, Perfect 5th, Minor 7th | Bluesy, mellow, contemplative |
🎹 Chord Quality Characteristics
Triads (3-note chords): Major, Minor, Sus2, Sus4, Diminished, Augmented — Clear, fundamental harmonies ideal for traditional music and strong harmonic foundations.
Seventh Chords (4-note chords): Major7, Minor7 — Richer, more complex harmonies perfect for jazz, R&B, and sophisticated harmonic contexts.