Automatic Musical Key Detection Using the CQT-Based Triple Composite Signature of Fifths
Tomasz Łukaszewicz, Dariusz KaniaThe article presents an original approach to automatic musical key detection, combining Constant-Q Transform (CQT) analysis with the Triple Composite Signature of Fifths (TCSF). The method’s novelty lies primarily in the construction of the Signature of Fifths (SF), which is grounded in fundamental principles of music theory and builds on earlier SF-based studies. The proposed approach aims to preserve the algorithmic simplicity typical of SF approaches while strengthening their key advantages. In addition, the method reflects the analytical approach of experienced musicians by assigning greater importance to the initial and final sections of a piece. The use of CQT enables efficient audio analysis and offers a practical compromise between frequency resolution and alignment with the pitch-class representation. Experiments conducted on Franz Schubert’s songs from the Winterreise song cycle and Frédéric Chopin’s Preludes, Op. 28, confirm the effectiveness of the proposed algorithm, achieving 87.5% and 79.2% key-detection accuracy, respectively. The obtained results demonstrate that the proposed method is competitive with tonal profile-based key-detection approaches.