mirror of
https://github.com/kennethreitz/pytheory.git
synced 2026-06-21 15:00:57 +00:00
f61661ab3e
pytheory tune --chords names the chord you're strumming: browser page, terminal line, and SSE/WebSocket stream (chord/chord_notes/ chord_confidence fields). Behind it, audio.identify_chord() — a chromagram with harmonic discounting (3rd/5th/7th-partial spill is subtracted per pitch class so bright triads stop reading as maj7), a polyphony gate that rejects single notes, and template matching on all twelve roots. Calibrated by grid search against rendered guitar/piano/rhodes chords: 93% on an 81-case battery. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>