I started looking into the api last night, couldn’t see a straightforward route to populating sampler/drumracks so I used polybuffer and record to fill a small amount of buffers sequentially when it recieves a midinote and assigns the buffer that midinote with a coll. when the same midi note is detected again it triggers play~ to play that buffer.
Seems like if you’re looking for bug free performance tool and not a learning project you’re in the wrong place – there’s plenty of vst samplers that do this.
There’s nothing stopping you doing this in live. Why don’t you map these functions to your controller and take quantization off?