Get Started: Guitar Voicing Adapter: From Keyboard to Fretboard
npx @bluesprincemedia/thiri-mcp or hosted mcp.thiri.ai/mcp). New here? Play the instruments → Many voicings calculated for keyboard are physically impossible on a guitar. The Guitar Voicing Adapter solves this mapping challenge.
By matching the target pitch classes against standard guitar tuning and stretch limits, it outputs playable tab chords.
Fretboard Tuning Offsets:
const STRINGS = [40, 45, 50, 55, 59, 64]; // E2, A2, D3, G3, B3, E4 in MIDI
function findFret(targetMidi, stringIndex) {
const baseMidi = STRINGS[stringIndex];
const fret = targetMidi - baseMidi;
return (fret >= 0 && fret <= 15) ? fret : -1;
}
🤖 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:
- Click here to open a pre-filled GitHub Issue on the repository
- 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 JavaScript module that takes a MIDI pitch voicing returned by the THIRI voicing engine and maps it to a playable guitar chord tab. The program must evaluate finger-stretch distances across strings and standard EADGBE tuning offsets, outputting the result as ASCII fretboard layouts.