THIRI logo
build.thiri.ai
Solana · Seeker · Cadenza
AI Lab Research Note

Get Started: Building a Real-Time MIDI Lead Sheet Analyzer

June 5, 2026 by THIRI AI Lab
These prompts call the THIRI MCP. Get a free key → then add the MCP (npx @bluesprincemedia/thiri-mcp or hosted mcp.thiri.ai/mcp). New here? Play the instruments →

This real-time tool listens to live MIDI keystrokes, aggregates the held pitch notes, and queries THIRI to display the correct chord symbol and Roman numeral analysis.

By sorting the pitches and identifying the root, the tool removes ambiguity and updates the UI layout instantly, providing an interactive companion for rehearsals and lessons.

Live MIDI Event Handler:

let activeNotes = new Set();
window.requestMIDIAccess().then(access => {
  // Listen for noteOn and noteOff commands and query THIRI resolve
});

🤖 File an Issue for an Autonomous Coding Agent

This project requires setting up an external application or workflow environment. If you want an autonomous coding agent (like Claude Code) to implement it in your repository:

  1. Click here to open a pre-filled GitHub Issue on the repository
  2. Submit the issue to trigger your repository’s autonomous builder agent.

Alternatively, you can copy the raw agent prompt instruction below:

Task Context: Build a code project utilizing the THIRI Model Context Protocol (MCP) server. Prompt Instruction: Write a web page utilizing Web MIDI API. As keys are pressed on an attached MIDI controller, buffer the notes, resolve the active pitch classes, and query the THIRI MCP analyze_chord tool to identify and display the chord symbol and Roman numeral analysis in real-time.

Research Trends

Real-time Analysis Interactive Notation Live Performance