Commit
feat: Implement robust key detection system with improved accuracy
Commit details
Commit notes
- Replace basic chromagram computation with enhanced pitch-class profiling - Add EDMA (Electronic Dance Music) profiles optimized for modern music - Add Sha'ath and Temperley profiles for better genre coverage - Implement ensemble scoring using multiple key profile sets with adaptive weighting - Improve HPSS (Harmonic-Percussive Source Separation) with energy-weighted masking - Add tonality detection to properly return null for non-tonal content (drums, percussion) - Implement relative major/minor disambiguation using characteristic intervals - Enhance confidence estimation with multiple factors (voting, profile agreement, tonality) - Add pitch salience weighting favoring fundamental frequencies over harmonics - Improve tuning detection with better peak interpolation - Update worker key detection to match improved algorithm - All existing tests pass
Co-authored-by: armin.naimi <[email redacted]>
- Files changed
- 2
- Lines added
- +872
- Lines removed
- −264