Skip to content
THIRI logo
build.thiri.ai
Music theory for agents

Lab · Phase 3

Tension Mapper

Prototype agent workflow: run analyze_chord on each chord in a progression, map tension (0–1) to filter brightness and FM index in Csound score p-fields via @thiri/csound-core.

Csound Tension Mapper: Harmonic Tension (0 to 1) to Filter & FM Timbre
DEMO 0:35 CC
Mapping Dm7b5 -> G7alt -> Cmaj9 tension scores directly onto Csound brightness and FM index
Captions & transcript (3 lines)
  1. 0:00 Csound Tension Mapper: maps THIRI's 0-to-1 harmonic tension score to synth brightness and FM index.
  2. 0:12 Tests Dm7b5 -> G7alt -> Cmaj9 so altered dominant tension is immediately audible in timbre.
  3. 0:24 Read the Csound mapping and experiment notes at build.thiri.ai/lab/tension-mapper.

Agent prompt (copy-paste)

Requires dual MCP: thiri + thiri-conductor. Tool: render_audio.

Map harmonic tension to Csound synthesis for this progression in C: Dm7b5 → G7alt → Cmaj9.

For each chord:
1. analyze_chord (key C) — extract tension / function
2. Map tension 0–1 to filter cutoff + FM index (see @thiri/csound-core tensionMapper)
3. render_audio with a tension curve OR manual p-field edits
4. render_audio — 4 bars, tempo 96

Critique: do brighter chords (G7alt) sound more tense than Cmaj9? If not, adjust p-field mapping and re-render once.

Recipe index: /lab/agent-recipes

{
  "slug": "tension-mapper",
  "version": "0.1.0",
  "generatedAt": "2026-06-19T23:54:49Z",
  "commit": "fe55abe",
  "status": "building",
  "description": "Maps analyze_chord tension coefficients to Csound score amplitude and brightness p-fields.",
  "demo": "/lab/tension-mapper",
  "agentPrompt": "/lab/tension-mapper#agent-prompt"
}

See blog: research · recipe on build.thiri.ai innovators.

← Lab index