Here is a template of this ready made to use in Ableton 9.
I have the Standard version so that should work for everyone.
You will need to use the LoopBe1 driver on Windows -
On mac use the IAC driver.
I have included the preset for B-Step as well which will give you four sequences which can be muted individualy corresponding to whichever one of the four midi tracks you choose.
Pretty basic stuff for now, but it works and should help you get your head around what is going on!
You may need the latest version of Winrar to unzip the included files if you get errors.