Cloned or forked or whatever from snikolov version of nupic with his midi code