Spectral-flux onset detector (max-filtered reference, median threshold, refractory) and peak-based chroma with Krumhansl profile key estimate. Own FFT; no external dependencies. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>