Unsupervised Discovery of Tonality in Bach’s Chorales

Authors

  • Yui Uehara
  • Satoshi Tojo
  • Ryuhei Uehara

Keywords:

Unsupervised learning, Neural hidden semi-Markov model, Tonality detection, Sequence clustering

Abstract

This research aims at finding tonalities in an unsupervised manner, exemplifying J. S. Bach’s four-part chorales. Although the modern tonality of 24 keys was already the mainstream in J. S. Bach’s era, some of the chorales retained the feature of church modes and thus were not written in the same tonal system as current ones. We propose a novel framework for unsupervised learning of mode categories by extending the neural hidden semi-Markov model (HSMM) to a teacher-student learning architecture. While the teacher model equips an elaborated network for calculating the transition probability, the student model simplifies it to a learnable matrix just like a conventional HSMM. We prepare multiple student transition matrices and expect them to represent prototypes of modes. We cluster chord sequences obtained from the teacher model to mode categories by simply comparing the count of chord transitions with the transition probability matrices of students. The student transition probability matrices are tuned by a gradient-based optimizer so as to increase the marginal probability for sequences of observations. Experiments show that the three-students model satisfactorily represents clusters of major, minor, and dorian mode. In addition, tuned student transition matrices are consistent with known chord functions of tonic, dominant, and secondary dominant.

References

H. Bellmann, “About the determination of key of a musical excerpt,” in Computer Music Modeling and Retrieval, R. Kronland-Martinet, T. Voinier, and S. Ystad, Eds. Berlin, Heidelberg: Springer Berlin Heidelberg, 2006, pp. 76–91.

C. L. Krumhansl, Cognitive foundations of musical pitch. Oxford University Press, 2001.

D. Grout and C. Palisca, A history of Western music. WW Norton & Company, Inc., 1996, no. Ed. 5.

A. Schoenberg, Structural Functions of Harmony (revised edition). W. W. Norton & Company, 1969.

D. Temperley, “The tonal properties of pitch-class sets: Tonal implica tion, tonal ambiguity, and tonalness.” Computing in Musicology, vol. 15, 2007.

J. Albrecht and D. Shanahan, “The use of large corpora to train a new type of key-finding algorithm: An improved treatment of the minor mode.” Music Perception: An Interdisciplinary Journal, vol. 31, no. 1, pp. 59–67, 2013.

D. J. Hu and L. K. Saul, “A probabilistic topic model for unsupervised learning of musical key-profiles.” in 10th International Society for Music Information Retrieval Conference, 2009, pp. 441–446.

D. Temperley and E. W. Marvin, “Pitch-class distribution and the identification of key.” Music Perception, vol. 25, no. 3, pp. 193–212, 2008.

D. Harasim, F. C. Moss, M. Ramirez, and M. Rohrmeier, “Exploring the foundations of tonality: statistical cognitive modeling of modes in the history of Western classical music,” Humanities and Social Sciences Communications, vol. 8, no. 1, p. 5, 2021.

M. Rohrmeier and I. Cross, “Statistical properties of tonal harmony in bach’s chorales.” in 10th International Conference on Music Perception and Cognition, 2008, pp. 619–627.

Y. Uehara, E. Nakamura, and S. Tojo, “Chord function identification with modulation detection based on HMM.” in Proceedings of 14th In ternational Symposium on Computer Music Multidisciplinary Research, 2019, pp. 59–70.

C. W. White and I. Quinn, “Chord Context and Harmonic Function in Tonal Music,” Music Theory Spectrum, vol. 40, no. 2, pp. 314–335O, 11 2018.

L. Feisthauer, L. Bigo, M. Giraud, and F. Leve, “Estimating keys and ´ modulations in musical pieces.” in 18th Sound and Music Computing Conference, 2020.

N. N. Lopez, L. Feisthauer, F. Lev ´ e, and I. Fujinaga, “On local keys, ´ modulations, and tonicizations.” in 7th Digital Libraries for Musicology, 2020.

Y. Uehara and S. Tojo, “The simulated emergence of chord function,” in The 10th International Conference on Artificial Intelligence in Music, Sound, Art and Design, 2021, pp. 264–280.

M. S. Cuthbert and C. Ariza, “music21: A toolkit for computer-aided musicology and symbolic music data,” in Proceedings of the 11th International Society for Music Information Retrieval Conference, 2010.

L. Dahn, “So how many bach four–part chorales are there?” 2018, http: //www.bach-chorales.com/HowManyChorales.htm.

K. Tran, Y. Bisk, A. Vaswani, D. Marcu, and K. Knight, “Unsupervised neural hidden markov models.” in Proceedings of the Workshop on Structured Prediction for NLP, 2016, pp. 63–71.

L. R. Rabiner, “A tutorial on hidden markov models and selected applications in speech recognition,” Proceedings of the IEEE, vol. 77, no. 2, pp. 257–286, 1989.

S.-Z. Yu, “Hidden semi-markov models.” Artificial intelligence, vol. 174, no. 2, pp. 215–243, 2010.

H. Tsushima, E. Nakamura, K. Itoyama, and K. Yoshii, “Generative statistical models with self-emergent grammar of chord sequences.” Journal of New Music Research, vol. 47, no. 3, pp. 226–248, 2018.

Y. Wang, H. C. Leung, S. Yiu, and F. Y. Chin, “MetaCluster 5.0: a two-round binning approach for metagenomic data for low abundance species in a noisy sample,” Bioinformatics, vol. 28, no. 18, pp. i356–i362, 09 2012. [Online]. Available: https://doi.org/10.1093/ bioinformatics/bts397

Downloads

Published

2023-09-19

How to Cite

1.
Uehara Y, Tojo S, Uehara R. Unsupervised Discovery of Tonality in Bach’s Chorales. j.intell.inform. [Internet]. 2023 Sep. 19 [cited 2024 Oct. 5];8(Oct). Available from: https://ph05.tci-thaijo.org/index.php/JIIST/article/view/31