Musical Key Detection Using a Triple Composite Signature of Fifths

Authors

Abstract

This article introduces a novel algorithm for key detection in musical compositions represented in symbolic form, such as MIDI. The method is based on the analysis of a triple composite signature of fifths (TCSF), which is formed by combining the signatures of fifths obtained individually for the beginning, the end, and the entirety of the analyzed piece. The key is determined by the sign of the angle between the characteristic vector of the TCSF and the major/minor mode axis derived from that signature. To evaluate the algorithm’s effectiveness, experiments were conducted using Chopin’s Preludes, Op. 28, pieces from the Saarland Music Data: MIDI-Audio Piano Music dataset, as well as pieces from the Schubert Winterreise Dataset. As a reference method, a correlation-based algorithm implementing various tonal profiles was used. The proposed algorithm achieved the highest accuracy for Chopin’s Preludes and the Schubert Winterreise Dataset (91.67% in both cases), while for the Saarland Music Data, its accuracy was lower than that of the correlation-based approaches (72.34 %). The main advantages of the presented algorithm are low computational complexity, stable decision-making when extending the analytical window, as well as incorporation of expert analysis aspects, particularly by focusing on the beginning and end of the composition.

Downloads

Published

2026-09-15

How to Cite

Łukaszewicz, Tomasz, and Dariusz Kania. “Musical Key Detection Using a Triple Composite Signature of Fifths”. Archives of Acoustics, vol. 51, no. 3, Sept. 2026, pp. 549-60, https://wydawnictwo.pan.pl/index.php/aa/article/view/6306.

Issue

Section

Articles

Similar Articles

You may also start an advanced similarity search for this article.