Better HN
topnewbestaskshowjobs
Log inSign up

codewithbre

2 karma · joined Jul 11, 2026 (4mo ago) · 7 submissions

Submissions

comment 4mo ago · link · parent

It can help an AI out with the harmonic theory. If an AI is composing in a key, it needs to know which notes belong together, how keys relate, what modal character sounds like. getModeNotes, getRelativeMinorKey, getCircleOfFifths give you those constraints programmatically, which means an AI can make harmonically grounded decisions rather than picking notes at random.

It's the more of a "what notes belong together", rather than a composition engine. So it can help AI-generated music not sound harmonically off.

2.

Show HN: @playbykey/theory - Music theory TypeScript engine and MCP server(theory-engine.docs.playbykey.com ↗)

3 points · by codewithbre · 4mo ago · 4 comments