Forums > MaxMSP

Two separate commands for starting and stopping routed together

Jan 30 2013 | 11:34 pm

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’).

  1. startstop.maxpat
Jan 31 2013 | 10:23 am

just route it all to the one toggle like this?

-- Pasted Max Patch, click to expand. --

Jan 31 2013 | 2:17 pm

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

-- Pasted Max Patch, click to expand. --

Jan 31 2013 | 5:05 pm

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

-- Pasted Max Patch, click to expand. --

Feb 01 2013 | 2:14 pm

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.

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > MaxMSP