Over the last couple years I've been working on a set of tools for Max/Live that focus on machine learning while being optimized for low latency, specifically for use with drums and percussion. It's largely built on the FluCoMa toolbox in Max, but exists as a separate package on top of it.
Here's the landing page for it:
Or the github for the updates:
As of version 0.5, I added native support for the Erae Touch, which you can see in this video here:
In addition to making an abstraction for parsing the messages, you can easily set up large sample libraries and browse them with either mouse/MIDI controller, or audio analysis.