THIRI logo
build.thiri.ai
Solana · Seeker · Cadenza

Lab · Phase 3

Composition Critic

Combines thiri-composition-mcp with render_csound_wav so an agent can compose, hear, and iterate on duration and voice-leading constraints.

Agent prompt (copy-paste)

Triple MCP: thiri (optional analyze), thiri-composition, thiri-conductor.

You are a composition critic with thiri-composition-mcp + thiri-conductor-mcp.

1. create_composition — key C, template gospel_jazz_minor, 4 bars
2. revoice_progression — bill_evans on bar 1
3. render_composition — report note count and duration (target ≤ 12s)
4. build_csound_score from rendered events → render_csound_wav
5. inspect_composition — list ops; flag parallel fifths or awkward leaps
6. If duration > 12s OR lead sheet fails voice-leading: reharmonize_section bar 2, then repeat 3–5 once

Final output: lead sheet string, WAV path, and 2-sentence critique.

Full recipe chain: /lab/agent-recipes

{
  "slug": "composition-critic",
  "version": "0.1.0",
  "generatedAt": "2026-06-19T23:54:49Z",
  "commit": "fe55abe",
  "status": "building",
  "description": "Agent loop: composition MCP compose → render_csound_wav → inspect lead sheet duration.",
  "demo": "/lab/composition-critic",
  "tests": {
    "compositionMcp": "pass",
    "lastRun": "2026-06-19T23:54:49Z"
  }
}
← Lab index