Abstract
In this paper, we introduce Story2MIDI, a sequence-to-sequence Transformer-based model for generating emotion-aligned music from a given piece of text. To develop this model, we construct the Story2MIDI dataset by merging existing datasets for sentiment analysis from text and emotion classification in music. The resulting dataset contains pairs of text blurbs and music pieces that evoke the same emotions in the reader or listener. Despite the small scale of our dataset and limited computational resources, our results indicate that our model effectively learns emotion-relevant features in music and incorporates them into its generation process, producing samples with diverse emotional responses. We evaluate the generated outputs using objective musical metrics and a human listening study, confirming the model's ability to capture intended emotional cues.
Abstract (translated)
在这篇论文中,我们介绍了Story2MIDI,这是一个基于序列到序列Transformer的模型,用于从给定文本生成与情感相匹配的音乐。为了开发这一模型,我们构建了Story2MIDI数据集,通过合并现有的文本情感分析和音乐情绪分类的数据集来创建。该数据集中包含了能够引起读者或听众相同情感反应的文字片段和音乐作品对。尽管我们的数据规模较小且计算资源有限,但结果表明,我们的模型有效地学习到了与情感相关的音乐特征,并将其纳入生成过程中,从而产生了具有多样情感回应的样本。我们使用客观音乐指标和人类听觉研究来评估生成的输出,确认了该模型捕捉预期情绪线索的能力。
URL
https://arxiv.org/abs/2512.02192