Random melody generator

Have you ever had to come up with a melody line for a song intro, but weren't inspired to make something up? I play the violin for the Surrey 1 Couples For Christ music group, and there is never violin sheet music for the songs that we play. If the song is on YouTube, I can write down the lead guitar part. But if not, then I don't know what to play, and I'm not always good at creating something from scratch.

So what I am trying today is the Melisma Stochastic Melody Generator from Carnegie Mellon University. Enter the key and whether it is major or minor, then press "Generate Melody", and you will get a midi file with a generated melody.

Here is an example you can listen to.

Then, if you read sheet music, you can use a MIDI to sheet music converter. I haven't found a good one yet though.


A good way to turn your midi file into sheet music is to download ScoreCloud, choose to Record, then play the midi file using QuickTime. You get simpler results by recording with your microphone than importing the midi file, which produces a messy result.

comments powered by Disqus

Did you know?

I'm a software engineering consultant. This means I can help your company with your software engineering needs:

  • providing temporary manpower for short-staffed software projects

  • helping new software projects get off to a good architectural start

  • improving the performance and reliability of old, legacy software systems

  • doing an important investigation or small project that you've always wanted to do but haven't had time for

Since 1999, I have done software engineering projects for the Canadian government, for Silicon Valley startups, and for established Bay Area companies, for small companies and medium-sized companies, for successful commercial projects and open-source projects. 

Currently accepting small projects. If you have one, email or call me.