Two separate commands for starting and stopping routed together

vaz's icon

Hi all,

I'm building my own DJ platform (don't worry, there's more than what's shown!).
I want to use the spacebar to start/stop audio from grooveduck, and I also want to use the ' 1 ' key to start/stop audio.

How do I link the two commands together so that each one knows what the other is doing?
i.e. if i hit space bar for the 1st time, it will play the audio (as it does), but if I then hit ' 1 ' afterwards (or any other additional command), it will stop, and NOT start a new command from '0 - 1' using a toggle (should be '1 ((already activated)) - 0').

4971.startstop.maxpat
Max Patch
Floating Point's icon
Max Patch
Copy patch and select New From Clipboard in Max.

just route it all to the one toggle like this?

ak's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I believe you want to have something between toggle and radio group?
hth

ak's icon
Max Patch
Copy patch and select New From Clipboard in Max.

...and version with filtered out redundant messages (due to the fact how [decode] works)

vaz's icon

Dear all,

thank you kindly for the help.
All the winner is.... ALL of you! for being such good sports!

Patches tend to get a little crazy so it's best to simplify.