Home > Published Issues > 2023 > Volume 14, No. 1, 2023 >
JAIT 2023 Vol.14(1): 26-38
doi: 10.12720/jait.14.1.26-38

Gamelan Melody Generation Using LSTM Networks Controlled by Composition Meter Rules and Special Notes

Arry M. Syarif 1,*, A. Azhari 2, S. Suprapto 2, and K. Hastuti 1
1. Faculty of Computer Science, Universitas Dian Nuswantoro, Semarang, Indonesia
2. Gadjah Mada, Indonesia
*Correspondence: arry.maulana@dsn.dinus.ac.id

Manuscript received May 22, 2022; revised July 5, 2022; accepted July 22, 2022; published February 10, 2023.

Abstract—This study proposes a Gamelan melody generation system based on three characteristics, which are the melodic patterns recognition, composition meter rules that control the duration of notes, and the special notes (pitches) selection which represent ambiguous rules in determining the Gamelan musical mode system. Long-Short Term Memory (LSTM) networks were trained using the sequence prediction technique to generate symbolic based Gamelan melodies. The dataset collected from sheet music was converted into ABC notation format, added with codes representing the composition meter and special notes, and restructured into a character-based representation format. The LSTM network training showed good results in the melodic patterns recognition but the networks take less than 10 attempts for the LSTM network to successfully generate one melody. The evaluation was conducted using experts’ judgment. Three generated melodies were sent to experts to be read, hummed and judged. Overall, the evaluation results showed that the generated melodies can comply with the characteristics of the Gamelan melodic patterns, the composition meter and the special notes.  
Keywords—melody generation, melodic patterns, symbolic music, sequence prediction, long-short term memory 
Cite: Arry M. Syarif, A. Azhari, S. Suprapto, and K. Hastuti, "Gamelan Melody Generation Using LSTM Networks Controlled by Composition Meter Rules and Special Notes," Journal of Advances in Information Technology, Vol. 14, No. 1, pp. 26-38, February 2023.
Copyright © 2023 by the authors. This is an open access article distributed under the Creative Commons Attribution License (CC BY-NC-ND 4.0), which permits use, distribution and reproduction in any medium, provided that the article is properly cited, the use is non-commercial and no modifications or adaptations are made.