Amen break slicing (from 2014)

I came across this again recently and I’m still proud of it so thought it would be fun to re-share it here for a new audience. This also gives a good view of the state of Sonic Pi three years ago(!) and how far it has come.

For those who are interested, the pattern slicing stuff is in the codebase but currently commented out: