Pop Music Automation - Melody Generation

Melody Generation

Automatic melody generation is often done with a Markov chain, the states of the system become note or pitch values, and a probability vector for each note is constructed, completing a transition probability matrix (see below). An algorithm is constructed to produce and output note values based on the transition matrix weightings, which could be MIDI note values, frequency (Hz), or any other desirable metric.

1st-order matrix
Note A C# Eb
A 0.1 0.6 0.3
C# 0.25 0.05 0.7
Eb 0.7 0.3 0
2nd-order matrix
Note A D G
AA 0.18 0.6 0.22
AD 0.5 0.5 0
AG 0.15 0.75 0.1
DD 0 0 1
DA 0.25 0 0.75
DG 0.9 0.1 0
GG 0.4 0.4 0.2
GA 0.5 0.25 0.25
GD 1 0 0

A second-order Markov chain can be introduced by considering the current state and also the previous state, as indicated in the second table. Higher, nth-order chains tend to "group" particular notes together, while 'breaking off' into other patterns and sequences occasionally. These higher-order chains tend to generate results with a sense of phrasal structure, rather than the 'aimless wandering' produced by a first-order system.

Read more about this topic:  Pop Music Automation

Famous quotes containing the words melody and/or generation:

    Hetty [Burney’s sister] set down to the harpsichord and sung ... we departed this life of anguish and misery, and rested our weary souls in the Elysian field—my papa’s study—there, freed from the noise and bustle of the world enjoyed the harmony of chattering—and the melody of music!
    Frances Burney (1752–1840)

    Their virtues lived in their children. The family changed its persons but not its manners, and they continued a blessing to the world from generation to generation.
    Sarah Fielding (1710–1768)