LOADING…
0%
Complete changelog

Commit

refactor: Extract key detection into shared module to eliminate duplication

Commit details

Commit notes

- Create new shared module: backend/src/audio/key-detection.ts - Contains all key detection logic, constants, and profiles - Exports: detectMusicalKey, extractKeyFromFilename, getCamelotCode - Exports: KEY_NAMES, CAMELOT_MAJOR, CAMELOT_MINOR, KEY_PROFILES, etc. - Update audio-analysis.ts to import from shared module (~1000 lines removed) - Update audio-analysis-worker.ts to import from shared module (~250 lines removed) - Both files now use the same key detection implementation - All tests pass

Co-authored-by: armin.naimi <[email redacted]>

Files changed
4
Lines added
+1,238
Lines removed
−1,528
This page is a permanent record of commit 4793fcc4.