Stopping device when I press Stop on playback

Learn about building and using Max for Live devices.
Post Reply
junior85
Posts: 23
Joined: Sun Jun 16, 2019 4:07 pm

Stopping device when I press Stop on playback

Post by junior85 » Mon Jul 04, 2022 11:39 am

Hi folks,

I've created a device that I use on every channel to add some randomness to its pan and volume.
However, the way I've built it means that when I switch it on, it's on til I manually stop it.
This means it continues to write undo data, so undo becomes useless basically :D

Is there a way to trigger a device to turn off when I press the Stop button, and reactivate when I press Play?

chapelier fou
Posts: 6002
Joined: Mon May 15, 2006 12:15 pm

Re: Stopping device when I press Stop on playback

Post by chapelier fou » Mon Jul 04, 2022 11:42 am

[plugsync~] and [gate]
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

junior85
Posts: 23
Joined: Sun Jun 16, 2019 4:07 pm

Re: Stopping device when I press Stop on playback

Post by junior85 » Mon Jul 04, 2022 12:02 pm

Thanks! Do you know any good sample implementations of those?
I'm very much just a hobbyist making tools to make my own mixing life easier.

Edit: No worries if not, I've searched for it and found some stuff to read.

junior85
Posts: 23
Joined: Sun Jun 16, 2019 4:07 pm

Re: Stopping device when I press Stop on playback

Post by junior85 » Mon Jul 04, 2022 12:11 pm

Nice, I think I only needed [plugsync~] in the end.
I already had a toggle in the device and linked the transport state to it.
Thanks!

Edit edit: I actually needed [change] too because there seemed to be repetitions of the output.

Post Reply