Jurnal Masyarakat Informatika
Vol 17, No 2 (2026): November 2026 (Ongoing Issue)

Effects of Temperature Sampling and Tempo Variation on LSTM-Based Music Generation

Imam Fathurrahman (Universitas Hamzanwadi)
Muhammad Djamaluddin (Universitas Hamzanwadi)
Ramli Ahmad (Universitas Hamzanwadi)
Hariman Bahtiar (Universitas Hamzanwadi)
Muhamad Sadali (Universitas Hamzanwadi)
Zulkipli Mansyur (Universitas Hamzanwadi)



Article Info

Publish Date
19 Nov 2026

Abstract

Long Short-Term Memory (LSTM) models for symbolic music generation may produce repetitive sequences under deterministic decoding. This study examines how sampling temperature and externally imposed tempo variation affect the statistical characteristics of generated MIDI music. A factorial experiment combined four decoding settings (Argmax and temperature sampling at T = 0.6, 0.7, and 1.0) with fixed- and dynamic-tempo rendering. Using one trained LSTM checkpoint and controlled seeds, 40 MIDI files were generated across eight conditions, with five runs per condition. The dataset was split by MIDI file before sequence construction to reduce data leakage. Generated outputs were assessed using pitch entropy, repetition ratios, N-gram overlap, pitch-class distribution similarity, rhythmic diversity, and tempo statistics. At T = 1.0, mean pitch entropy was highest (5.57 ± 0.13 bits), immediate repetition lowest (0.10 ± 0.01), and Chroma Jensen-Shannon Divergence lowest (0.0244 ± 0.0163). Higher temperatures also reduced trigram overlap with the validation corpus, indicating a diversity-similarity trade-off. Dynamic-tempo rendering introduced timing variation without changing pitch-based metrics under matched sampling conditions. These results distinguish effects of token sampling from tempo rendering but do not establish perceptual musical quality.

Copyrights © 2026






Journal Info

Abbrev

jmasif

Publisher

Subject

Computer Science & IT

Description

JURNAL MASYARAKAT INFORMATIKA - JMASIF is a Journal published by the Department of Informatics, Universitas Diponegoro invites lecturers, researchers, students (Bachelor, Master, and Doctoral) as well as practitioners in the field of computer science and informatics to contribute to JMASIF in the ...