Markov chains music generation

Here’s a project I’ve had on the back-burner for many years. Following the natural progression of generating stuff based on Markov chains, I decided a while ago to port the algorithm to music.

Music presents many challenges that I haven’t been able to address well so far. As a result, what the algorithm produces always had a bitter unfinished aftertaste to me, hence why I haven’t published anything about it for years.

  • Music is multidimensional, time is relevant and needs it own analysis and subsequent generation
  • The interconnectedness of different instruments from the piece is important as well.
  • Random generation even based on Markov chains fails to produce any structure. The pieces all sound like a long solo without chorus or any other repetition that would give us what we strive for: anticipation. In other words, it’s perfect for jazz.

I’m hoping that publishing this will give me the kick in the nuts necessary to keep improving it. Without further ado, here’s what I have so far.


Future improvements:

  • add to corpus
  • clean pieces analyzed of noise
  • try to infuse structure

A successful introduction

I installed 2 colonies today and everything went extremely well. Having done this once in the past really helped; I knew how to read the bees better and kept them very docile during the whole process.

The second package introduced into the top bar hive

[flv:http://ben.akrin.com/wp-content/uploads/2013/05/IMG_1285.MOV.flv http://ben.akrin.com/wp-content/uploads/2013/05/IMG_1285.MOV.flv.jpg 688 387]

The hives in all their glory

A close-up of the new Langstroth hive this season (up-side down because iPhone)

[flv:http://ben.akrin.com/wp-content/uploads/2013/05/IMG_1304.MOV.flv http://ben.akrin.com/wp-content/uploads/2013/05/IMG_1304.MOV.flv.jpg 688 387]

Busy figuring their new place out

[flv:http://ben.akrin.com/wp-content/uploads/2013/05/IMG_1292.MOV.flv http://ben.akrin.com/wp-content/uploads/2013/05/IMG_1292.MOV.flv.jpg 688 387]

The weather kept me on my toes but fortunately left us alone for a good while. The rain poured heavily a couple of hours afterwards, I hope all the bees found their way inside before.