EMelodyGen: Emotion-Conditioned Melody Generation in ABC Notation with the Musical Feature Template

Monan Zhou, Xiaobing Li, Feng Yu, Wei Li
9/23/2023
cs.IRcs.AIcs.SD

Official code: monetjoe/EMelodyGen (31 stars, LGPL-3.0, last commit 2026-04-27).

Abstract

The EMelodyGen system focuses on emotional melody generation in ABC notation controlled by the musical feature template. Owing to the scarcity of well-structured and emotionally labeled sheet music, we designed a template for controlling emotional melody generation by statistical correlations between musical features and emotion labels derived from small-scale emotional symbolic music datasets and music psychology conclusions. We then automatically annotated a large, well-structured sheet music collection with rough emotional labels by the template, converted them into ABC notation, and reduced label imbalance by data augmentation, resulting in a dataset named Rough4Q. Our system backbone pre-trained on Rough4Q can achieve up to 99% music21 parsing rate and melodies generated by our template can lead to a 91% alignment on emotional expressions in blind listening tests. Ablation studies further validated the effectiveness of the feature controls in the template. Available code and demos are at https://github.com/monetjoe/EMelodyGen.

View on arXivView PDF

Code Implementations(1)

LGPL-3.0

EMelodyGen creates emotional ABC melodies via templates. Rough4Q dataset is auto-labeled by small emotional datasets and music psychology to fine-tune backbone after augmentation with 99% correct rate, 91% emotional alignment and effective feature controls.|EMelodyGen通过模板控制ABC生成旋律情感。利用小型情感数据集和音乐心理学为Rough4Q数据集生成标签,经转换和增强后微调骨干网络。生成谱正确率99%,情感准确率为 91%。

312PHP, HTMLMay 13, 20245 months agoLGPL-3.0
abcabc-notationdata-augmentationemotionfeature-engineering+5 more

Similar Papers

Cite this paper

@article{zhou2023emelodygen,
  title  = {EMelodyGen: Emotion-Conditioned Melody Generation in ABC Notation with the Musical Feature Template},
  author = {Monan Zhou and Xiaobing Li and Feng Yu and Wei Li},
  year   = {2023},
  eprint = {2309.13259},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.13259v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.13259.svg)](https://codeofpaper.com/paper/2309.13259)

Discussion