Experiment: Random Notes to Melody

Is it possible to take a random sequence of notes and produce a coherent melody just by choosing the appropriate rhythm?

My initial thought is: maybe.

Here is the plan:

  1. Limit the notes to those on a major scale. These can be represented as integers from 1 to 7.
  2. Get a random sequence of notes from, say, here.
  3. Write out the notes.RandomNotes
  4. Muck around with the rhythm until it sounds ok.RandomMelody

This actually seemed to work. I made something that is certainly usable, if not great, to start a melody. I couldn’t end on the C at the end of the random notes, maybe I should have just kept getting random notes until it felt like a good place to stop.

As it is, I haven’t disproven the hypothesis. It would be interesting to try to work out an automated way to do this. Perhaps based on cadences and harmonies choosing which notes are to be on emphasised beats.