Automatic Melody Reduction via Shortest Path Finding

Abstract

Melody reduction, as an abstract representation of musical compositions, could serve as an analytical tool in music theory as well as a useful intermediate feature for automated music understanding and generation. Previous computational music theories, often based on formal music grammar, have struggled to yield melody reductions for practical use, particularly in non-classical genres where traditional music theories do not always apply. In this paper, we introduce a novel computational approach to extract melody reduction under an intuitive graph representation inspired by human cognitive principles, in which edges represent various types of note connections. The melody reduction is achieved using a shortest-path algorithm. We evaluate our algorithm on pop, folk, and classical genres, and experimental results show that the algorithm produces melody reductions that are more faithful to the original melody and more musically coherent than other common melody downsampling methods. Furthermore, we use the melody reductions for downstream music variation generation. Experiments show that our method achieves higher quality than state-of-the-art style transfer methods for symbolic music.

Melody Reduction Demo

Here we show some melody reduction samples of pop, folk and classical genres. We compare to two baselines as mentioned in paper: DS-OBS and DS-LS.

Melody 1 (Pop Genre)

Original Melody Ours
Baseline: DS-OBS Baseline: DS-LS

Melody 2 (Pop Genre)

Original Melody Ours
Baseline: DS-OBS Baseline: DS-LS

Melody 3 (Folk Genre)

Original Melody Ours
Baseline: DS-OBS Baseline: DS-LS

Melody 4 (Folk Genre)

Original Melody Ours
Baseline: DS-OBS Baseline: DS-LS

Melody 5 (Classical Genre)

Original Melody Ours
Baseline: DS-OBS Baseline: DS-LS

Melody 6 (Classical Genre)

Original Melody Ours
Baseline: DS-OBS Baseline: DS-LS

Melody Variation Demo

To evaluate the effectiveness of the melody reduction for downstream music generation tasks, we use the melody reduction as an intermediate feature for music variation generation. Here we show some melody variation samples comparing the generation model trained with our algorithm and two baselines.

Example 1

Original Melody Ours + Diff.
Baseline: DS-OBS + Diff. Baseline: EC2-VAE Sampling

Example 2

Original Melody Ours + Diff.
Baseline: DS-OBS + Diff. Baseline: EC2-VAE Sampling

Example 3

Original Melody Ours + Diff.
Baseline: DS-OBS + Diff. Baseline: EC2-VAE Sampling

Example 4

Original Melody Ours + Diff.
Baseline: DS-OBS + Diff. Baseline: EC2-VAE Sampling