Algorithmic Dude
I read an article on algorithmic composition from Music and Mathematics which is available here:
Universal Prediction Applied to Stylistic Music Generation
It covers a simple yet effective machine learning algorithm based on data compression that can be applied to algorithmic composition. They even included some pseudo-code that I was able to translate easily into Python.
A non-incremental variation of this code is here which uses the example corpus from the article "abababcabdabcdabce" and creates strings of length 10 from it based on its probabilities.
Rather than jump right in to generating music, I used all The Dude's lines from The Big Lebowski as a corpus. For your enjoyment (or bemusement) here's 10 algorithmically generated lines of dialog of The Dude:
He yelled money all over town including my rug in cash?
Uh and they're gonna kill her!
We're not that yoga?
Is and her Walter what's in the parlance two of police just hey Walter Walter what the fuck are you man!?
Just tell her fucking synagogue.
This is the driver already spent the achievers.
The fucking nihilist ah that some creedence already spent thing?
Peed on my rug in the briefcase.
Amendment fucked it home the friend is this him down a crip...you fuck sympathy!
Wait let me explain something about that shit.
Huh. It'll be interesting to see if I'll have better luck with music. I just better not use The Eagles as a corpus.










