I'm working on a sampler which uses waveform~ to let you easily select the portion of a .wav file to loop through groove~. The problem is that I don't actually want the audio to loop, I just want an easy way to play a fragment of the file once. Also, each time the corresponding button for that sample is pressed, the sample should simply restart if it is still playing.
I've been trying to figure out how to do this using delta~/edge and/or snapshot~ but snapshot~ is not accurate enough, and delta~/edge reports a change when the button is pressed (for a restart.)
I feel like this should be a pretty straightforward problem, but can't seem to figure it out (I'm pretty new to Max.) Does anybody have some pointers?