Fast Recognition using Bar-based Data Mapping for Gamelan Music Genre Classification


  • Khafiizh Hastuti
  • Pulung Nurtantio Andono
  • Arry Maulana Syarif
  • Azhari Azhari



Multi-class classification, Fast recognition, Bar-based data mapping, Feedforward Neural Networks, Gamelan music genre classification


This research aims to develop a gamelan music genre classifier based on the musical mode system determined based on the dominant notes in a certain order. Only experts can discriminate the musical mode system of compositions. The Feed Forward Neural Networks method was used to classify gamelan compositions into three musical mode systems. The challenge is to recognize the musical mode system of compositions between the initial melody without having to analyze the entire melody using a small amount of data for the dataset. Instead of conducting a melodic extraction from audio signal data, the text-based skeletal melody data, which is a form of extracted melodic features, are used for the dataset. Unique corpuses are controlled based on the cardinality of the one-to-many relationship, and a data mapping technique based on the bars is used to increase the number of corpuses. The results show that the proposed method is suitable to solve the specified problems, where the accuracy in recognizing the class of unseen compositions between the initial melody achieves at 86.7%.


J. Ens, P. Pasquier, “Quantifying musical style: Ranking symbolic music based on similarity to a style,” Proceedings of the International Symposium on Music Information Retrieval, Delft, Netherlands, November 4-6, 2019, pp. 870-877.

N. Prabhu, A. Asnodkar, R. Kenkre, “Music genre classification using improved artificial neural network with fixed size momentum,” International Journal of Computer Applications, vol. 101, no. 14, pp. 25-30, 2014.

M. Haggblade, Y. Hong, K. Kao, Music Genre Classification, 2011, [Online]. Available at:

D. Imran, H. Wadiwala, M.A. Tahir, M. Rafi, “Semantic feature extraction using feed-forward neural network for music genre classification,” Asian Journal of Engineering, Sciences & Technology, vol. 2, no. 1, pp. 1-6, 2017.

N. Pelchat, C.M. Gelowitz, “Neural network music genre classification,” Proceedings of the 2019 IEEE Canadian Conference of Electrical and Computer Engineering (CCECE), Edmonton, AB, Canada, May 5-8, 2019, pp. 1-4.

A.I. Tamboli, R.D. Kokate, “An effective optimization-based neural network for musical note recognition,” Journal of Intelligent Systems, vol. 28, no. 1, pp. 173-183, 2019.

G. Campobello, D. Dell’Aquila, M. Russo, A. Segreto, “Neuro-genetic programming for multigenre classification of music content,” Applied Soft Computing Journal, vol. 94, pp. 1-13, 2020.

A. Shakya, B. Gurung, M.S. Thapa, M. Rai, B. Joshi, Music Classification Based on Genre and Mood, in: J. Mandal, P. Dutta, S. Mukhopadhyay (eds), Computational Intelligence, Communications, and Business Analytics. CICBA 2017. Communications in Computer and Information Science, vol 776, Springer, Singapore, 2017, pp. 168-183.

Y.-S. Seo, J.-H. Huh, “Automatic emotion-based music classification for supporting intelligent IoT applications,” Electronics, vol. 8, no. 2, pp. 1-20, 2019.

B. Xie, J.C. Kim, C.H. Park, “Musical emotion recognition with spectral feature extraction based on a sinusoidal model with model-based and deep-learning approaches,” Applied Sciences, vol. 10, no. 3, pp. 1-11, 2020.

J. Yoon, H. Lim, D-W. Kim, “Music genre classification using feature subset search,” International Journal of Machine Learning and Computing, vol. 6, no. 2, pp. 134-138, 2016.

T.L. Li, A.B. Chan, A.H.W. Chun, “Automatic musical pattern feature extraction using convolutional neural network,” Proceedings of the International Multi Conference of Engineers and Computer Scientist 2010, Hongkong, March 17-19, 2010, pp. 546-550.

P. Hamel, D. Eck, “Learning features from music audio with deep belief networks,” Proceedings of the 11th International Society for Music Information Retrieval Conference (ISMIR 2010), Utrecht, Netherlands, August 9-13, 2010, pp. 339-344.

J. Lee, M. Lee, D. Jang, K. Yoon, “Korean traditional music genre classification using sample and MIDI phrases,” KSII Transactions on Internet and Information Systems, vol. 12, no. 4, pp. 1869-1886, 2018.

S. Jothilakshmi, N. Kathiresan, “Automatic music genre classification for Indian music,” Proceedings of the 2012 International Conference on Software and Computer Applications (ICSCA 2012), Singapore, June 9-10, 2012, pp. 55-59.

M.A. Al Mamun, I. Kadir, A.S.A. Rabby, A. Al Azmi, “Bangla music genre classification using neural network,” Proceedings of the 8th International Conference System Modeling and Advancement in Research Trends (SMART), Moradabad, India, November 22-23, 2019, pp. 397-403.

S. Grollmisch, E. Cano, F.M. Angel, G.L. Gil, “Ensemble size classification in Colombian Andean string music recordings,” Proceedings of the 14th International Symposium of Computer Music Multidisciplinary Research, Marseille, France, October 14-18, 2019, pp. 565-576.

S. M. H. Mousavi, V. B. S. Prasath, S. M. H. Mousavi, “Persian classical music instrument recognition (PCMIR) using a novel Persian music database,” Proceedings of the 9th International Conference on Computer and Knowledge Engineering (ICCKE), Mashhad, Iran, October 24-25, 2019, pp. 122-130.

K. Hastuti, A. Azhari, A. Musdholifah, R. Supanggah, “Building melodic feature knowledge of gamelan music using apriori based on functions in sequence (AFiS) algorithm,” International Review on Computers and Software, vol. 11, no. 12, pp. 1127-1137, 2016.

J. Becker, A. Becker, “A grammar of the musical genre srepegan,” Asian Music, vol. 14, no. 1 pp. 30-73, 1982.

D.W. Hughes, “Deep structure and surface structure in Javanese music: A grammar of gendhing lampah,” Ethnomusicology, vol. 32, no. 1, pp. 23-74, 1988.

K. Hastuti, A. Azhari, A. Musdholifah, R. Supanggah, “Rule-based and genetic algorithm for automatic gamelan music composition,” International Review on Modelling and Simulations, vol. 10, no. 3, pp. 202-212. 2017.

H. Hild, J. Feulner, W. Menzel, “HARMONET: A neural net for harmonizing chorales in the style of J.S. Bach,” Proceedings of the Advances in Neural Information Processing Systems 4 (NIPS), Denver, Colorado, USA, December 2-5, 1991, pp. 267-274.

A.M. Syarif, A. Azhari, S. Suprapto, K. Hastuti, “Human and computation-based musical representation for gamelan music,” Malaysian Journal of Music, vol. 9, pp. 82-100, 2020.

Martopangrawit, Pengetahuan Karawitan II, ASKI Surakarta, Indonesia, 1972, 59 p. (in: Indonesian)

P.M. Todd, “A connectionist approach to algorithmic composition,” Computer Music Journal, vol. 13, no. 4, 1989, pp. 27-43.

F. Colombo, S.P. Muscinelli, A. Seeholzer, J. Brea, W. Gerstner, “Algorithmic composition of melodies with deep recurrent neural networks,” Proceedings of the 1st Conference on Computer Simulation of Musical Creativity, University of Huddersfield, UK, June 17-19, 2016, pp. 2-12.




How to Cite

Hastuti, K., Andono, P. N., Syarif, A. M., & Azhari, A. (2021). Fast Recognition using Bar-based Data Mapping for Gamelan Music Genre Classification. International Journal of Computing, 20(3), 374-383.