Turning off groove~ looping with polybuffer~

Michael Hope's icon

I have a patch here that uses a noise gate to trigger samples from a folder using polybuffer~. I want to turn off looping with the groove~ object, but when I set @loop 0, only one sample from the folder plays and none of the subsequent samples are triggered. Changing groove~ to play~ produces the same outcome. I'm still fairly new to Max - what am I missing?

Guessing Game.maxpat
Max Patch

Sébastien Gay's icon

Your "noise gate" produces many bangs, so that [urn] generates outputs too quickly. The [onebang] is more or less useless in this position (it passes only the very first bang and is never restarted afterwards):

Michael Hope's icon

I am using the [onebang] because when I turn audio on, I don't want the trigger to turn on the toggle (which was happening before). I only want the trigger to activate the toggle when the "noise gate" is activated (i.e. not when audio is activated). I don't know if it's the best way to manage it but it worked so I kept it in the patch.