A Hardware-Oriented Algorithm for Real-Time Music Key Signature Recognition

The algorithm presented in this paper provides the means for the real-time recognition of the key signature associated with a given piece of music, based on the analysis of a very small number of initial notes. The algorithm can easily be implemented in electronic musical instruments, enabling real-time generation of musical notation. The essence of the solution proposed herein boils down to the analysis of a music signature, defined as a set of twelve vectors representing the particular pitch classes. These vectors are anchored in the center of the circle of fifths, pointing radially towards each of the twelve tones of the chromatic scale. Besides a thorough description of the algorithm, the authors also present a theoretical introduction to the subject matter. The results of the experiments performed on preludes and fugues by J.S. Bach, as well as the preludes, nocturnes, and etudes of F. Chopin, validating the usability of the method, are also presented and thoroughly discussed. Additionally, the paper includes a comparison of the efficacies obtained using the developed solution with the efficacies observed in the case of music notation generated by a musical instrument of a reputable brand, which clearly indicates the superiority of the proposed algorithm.

[1]  D. Kania,et al.  A Key-Finding Algorithm Based on Music Signature , 2019, Archives of Acoustics.

[2]  Dmitri Tymoczko,et al.  The Geometry of Musical Chords , 2006, Science.

[3]  E. Chew,et al.  4 Out of the Grid and Into the Spiral : Geometric Interpretations of and Comparisons with the Spiral-Array Model , 2008 .

[4]  Bozena Kostek,et al.  Automatic music genre classification based on musical instrument track separation , 2018, Journal of Intelligent Information Systems.

[5]  C. Krumhansl,et al.  Tracing the dynamic changes in perceived tonal organization in a spatial representation of musical keys. , 1982 .

[6]  David Temperley,et al.  Pitch-Class Distribution and the Identification of Key , 2008 .

[7]  R. Shepard Geometrical approximations to the structure of musical pitch. , 1982, Psychological review.

[8]  Ana M. Barbancho,et al.  Automatic melody composition based on a probabilistic model of music style and harmonic rules , 2014, Knowl. Based Syst..

[9]  Daniel Shanahan,et al.  The Use of Large Corpora to Train a New Type of Key-Finding Algorithm: An Improved Treatment of the Minor Mode , 2013 .

[10]  Ching-Hua Chuan,et al.  Audio Key Finding: Considerations in System Design and Case Studies on Chopin's 24 Preludes , 2007, EURASIP J. Adv. Signal Process..

[11]  Simon Dixon,et al.  Improving Music Genre Classification Using Automatically Induced Harmony Rules , 2010 .

[12]  Rafael Ramírez,et al.  Genre classification of music by tonal harmony , 2010, Intell. Data Anal..

[13]  Elaine Chew,et al.  MorpheuS: Generating Structured Music with Constrained Patterns and Tension , 2018, IEEE Transactions on Affective Computing.

[14]  Geoffroy Peeters,et al.  Local Key Estimation From an Audio Signal Relying on Harmonic and Metrical Structures , 2012, IEEE Transactions on Audio, Speech, and Language Processing.

[15]  D. Temperley Bayesian Models of Musical Structure and Cognition , 2004 .

[16]  Gilberto Bernardes,et al.  Harmony Generation Driven by a Perceptually Motivated Tonal Interval Space , 2016, CIE.