DOI QR코드

DOI QR Code

Music Key Identification using Chroma Features and Hidden Markov Models

  • Kanyange, Pamela (Department of IT Convergence and Applications Engineering, Pukyong National University) ;
  • Sin, Bong-Kee (Department of IT Convergence and Applications Engineering, Pukyong National University)
  • Received : 2017.05.04
  • Accepted : 2017.08.09
  • Published : 2017.09.30

Abstract

A musical key is a fundamental concept in Western music theory. It is a collective characterization of pitches and chords that together create a musical perception of the entire piece. It is based on a group of pitches in a scale with which a music is constructed. Each key specifies the set of seven primary chromatic notes that are used out of the twelve possible notes. This paper presents a method that identifies the key of a song using Hidden Markov Models given a sequence of chroma features. Given an input song, a sequence of chroma features are computed. It is then classified into one of the 24 keys using a discrete Hidden Markov Models. The proposed method can help musicians and disc-jockeys in mixing a segment of tracks to create a medley. When tested on 120 songs, the success rate of the music key identification reached around 87.5%.

Keywords

References

  1. J.D. White, The Analysis of Music, Prentice-Hall, Englewood Cliffs, N.J., 1976.
  2. A.M. Wisnu, M. Carmadi, S.P. Ary, and B.K. Sin, "Design of Music Learning Assistant Based On Audio Music and Music Score Recognition," Journal of Korea Multimedia Society, Vol. 19, No. 5, pp. 826-836, 2016. https://doi.org/10.9717/kmms.2016.19.5.826
  3. C.M. Grinstead and J.L. Snell, Introduction to Probability, American Mathematical Society, 2003.
  4. Circle of Fifths, Wikipedia, https://en.wikipedia.org/wiki/Circle_of_fifths, (accessed May, 01, 2017).
  5. Y. Zhu and M.S. Kankanhalli, “Precise Pitch Profile Feature Extraction from Musical Audio for Key Detection,” IEEE Transactions on Multimedia, Vol. 8, No. 3, pp. 575-584, 2006. https://doi.org/10.1109/TMM.2006.870727
  6. S. Pauws, "Musical Key Extraction from Audio," Proceeding of the Fifth International Conference on Music Informational Retrieval, vol.4, pp.66-69, 2004.
  7. C.L. Krumhansl, Cognitive Foundations of Musical Pitch, Oxford University Press, New York, 1990.
  8. A. Shenoy, "Key Determination of Acoustic Musical Signals," Proceeding of IEEE International Conference on Multimedia and Expo, pp.1771-1744, 2004.
  9. E. Chew, "The Spiral Array: An Algorithm for Determining Key Boundaries," Proceedings of the 2nd International Conference on Music and Artificial Intelligence, pp.18-31, 2002.
  10. Y. Zhu, M.S. Kankanhalli, and S. Gao, "Music Key Detection for Musical Audio," Proceeding of 11th International Mathematical Modeling Challenge, pp. 30-37, 2005.
  11. Z. Xinquan and L. Alexander, "Chord Detection Using Deep Learning," Proceedings of the 16th International Society for Music Information Retrieval Conference, pp. 26-30, 2015.
  12. R.N. Shepard, "Circularity in Judgments of Relative Pitch," The Journal of the Acoustical Society of America, Vol. 36, pp. 2346, 1964. https://doi.org/10.1121/1.1919362
  13. L.R. Rabiner, “Hidden Markov Models for Speech Recognition,” Technometrics: American Statistical Association, Vol. 33, No. 3, pp. 251-272, 1991. https://doi.org/10.1080/00401706.1991.10484833
  14. K. Murphy, Hidden Markov Model (HMM) Toolbox for Matlab, https://www.cs.ubc.-ca/-murphyk/Software/HMM/hmm.html (accessed May, 01, 2017).