Stochastic Drum Machine


I made a simple generative music program. It plays randomly generated drum patterns. Original is by Tero Parviainen:

You can create new patterns with the ‘GENERATE’ button. ‘LENGTH’ determines pattern length (4…16) and ‘DENSITY’ (0…100%) affects how many active notes there is. ‘DEVIATIONS’ (0…100%) adds random notes, delays and triplets when playing the pattern and ‘TEMPO’ changes the tempo.


StochasticDrumMachine.bin (58.3 KB)
Source code: