Genetic algorithm based drum sequencer
Sound Demo:
Hi!
I had some spare time this weekend so I decided to spend it learning max4live and max/msp in general. As a first project I choose a genetic algorithm driven drum sequencer as my experiences in the past with something similar that I wrote in Processing were overall very good and musical. If you don’t know what genetic algorithm is or how it works here is my post from other topic explaining the idea:
Device can be used to drive both drum tracks and melodic tracks as can be heard at the sound demo at the beginning of the post.
If you encounter any problems or have any ideas for improvements feel free to raise them here or at github but I must warn you that I have only around 20 something days of max4live trial left 
Requirements
Ableton Live 10, Max4Live
Documentation
Just drop the device into a midi track and it should start emitting midi notes right away. If that is not the case stop the transport and press play again in Ableton.
First sequencer allows to set target steps pattern and the second one is used to display what is currently output by the sequencer.
Controls
-
mutation chance : how big is the probability of sequence “genome” mutation - results in random steps flipping their state
-
population size : how big is the population that takes part in creating patterns. The bigger population the higher chance of
target pattern appearing
-
breeding population size : how many genomes are selected to create a new population at the end of each cycle
-
iter/cycle : how many iterations of breeding cycle are run at end of each cycle. Higher values make it possible to “reach” target pattern in fewer cycles.
-
note : midi note value which is output by sequencer
-
dur div : sets note lengths in dividiends of quarter note (synced to tempo). For example value
4 will result in note length of one sixteenth and value 1 will result in note length of one quarter.
-
seq length: sets the length of sequence
-
random population button: randomizes the population.
Download
v0.0.3 - https://github.com/kfirmanty/genetic-sequencer/archive/0.0.3-alpha.zip