Neural network monophonic melody generation with RNN, LSTM and GAN architectures

Abstract Music is an expression of emotion and a universal language that connects people across various cultures. From timeless classical pieces to modern electronic beats, artificial intelligence is capable of composing, arranging, and even crafting refined musical arrangements in a wide variety of styles. This study, trains and develops an automated model to create melodies, on the monophonic genre specific datasets that serve as inputs to the Melody Generative System (MGS) to generate and compose melody automatically. To accomplish this, Recurrent Neural Network (RNN), Long Short-Term Memory (LSTM) network and Generative Adversarial Network (GAN) was used. To train the model, we used musical datasets, in Kern and MIDI formats primarily featuring solo piano compositions. Here, the Kern dataset uses specific text based notations to represent musical elements, whereas MIDI is a format containing information about musical performance data like notes and duration. This article also compares the results obtained from three different architectures using different activation functions, distinctly tanh and softmax. The study found that, tanh activation function led to higher accuracy and lower loss compared to softmax function in generating melodies. The comparative analysis of the 3 networks prove that, RNN-LSTM has the best accuracy of 98.39% for 80 − 20 train-test-split. Whereas, the performance of GAN network fell short compared to Simple RNN and RNN-LSTM when trained with both Kern and MIDI datasets. This study showcases the capabilities of different melody generation algorithms for generating monophonic melodies, and also demonstrates how deep learning can effectively recognize and replicate musical patterns.

Authors

Publication Details

Journal
Scientific Reports
Published
2026-09-09
DOI
https://doi.org/10.1038/s41598-026-69781-z
Primary Topic
Music Technology and Sound Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Neural network monophonic melody generation with RNN, LSTM and GAN architectures

Duddela Sai Prashanth, Rakshith Bhandary, Vaishnavi Laxmi, Bharath Rai et al.
Scientific Reports
Music Technology and Sound Studies
article

Neural network monophonic melody generation with RNN, LSTM and GAN architectures

Duddela Sai Prashanth, Rakshith Bhandary, Vaishnavi Laxmi, Bharath Rai, Vignesh D. Jogi, Shivaraj
article en

Abstract

Abstract Music is an expression of emotion and a universal language that connects people across various cultures. From timeless classical pieces to modern electronic beats, artificial intelligence is capable of composing, arranging, and even crafting refined musical arrangements in a wide variety of styles. This study, trains and develops an automated model to create melodies, on the monophonic genre specific datasets that serve as inputs to the Melody Generative System (MGS) to generate and compose melody automatically. To accomplish this, Recurrent Neural Network (RNN), Long Short-Term Memory (LSTM) network and Generative Adversarial Network (GAN) was used. To train the model, we used musical datasets, in Kern and MIDI formats primarily featuring solo piano compositions. Here, the Kern dataset uses specific text based notations to represent musical elements, whereas MIDI is a format containing information about musical performance data like notes and duration. This article also compares the results obtained from three different architectures using different activation functions, distinctly tanh and softmax. The study found that, tanh activation function led to higher accuracy and lower loss compared to softmax function in generating melodies. The comparative analysis of the 3 networks prove that, RNN-LSTM has the best accuracy of 98.39% for 80 − 20 train-test-split. Whereas, the performance of GAN network fell short compared to Simple RNN and RNN-LSTM when trained with both Kern and MIDI datasets. This study showcases the capabilities of different melody generation algorithms for generating monophonic melodies, and also demonstrates how deep learning can effectively recognize and replicate musical patterns.

Scientific Reports
Openalex Percentile: Top 13%
Music Technology and Sound Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.