English

From melodic note sequences to pitches using word2vec

Computation and Language 2024-10-30 v1 Artificial Intelligence

Abstract

Applying the word2vec technique, commonly used in language modeling, to melodies, where notes are treated as words in sentences, enables the capture of pitch information. This study examines two datasets: 20 children's songs and an excerpt from a Bach sonata. The semantic space for defining the embeddings is of very small dimension, specifically 2. Notes are predicted based on the 2, 3 or 4 preceding notes that establish the context. A multivariate analysis of the results shows that the semantic vectors representing the notes have a multiple correlation coefficient of approximately 0.80 with their pitches.

Keywords

Cite

@article{arxiv.2410.22285,
  title  = {From melodic note sequences to pitches using word2vec},
  author = {Daniel Defays},
  journal= {arXiv preprint arXiv:2410.22285},
  year   = {2024}
}

Comments

12 pages, 6 figures

R2 v1 2026-06-28T19:40:00.226Z