Please forgive me if this is an obvious question, I'm fairly new to Max.
I have a stream of data coming from an arduino and into MAX, then triggering scenes in ableton. NB I'm not using M4L, I'm just sending ctrlout messages as either 127 or 0 to launch different scenes in Ableton depending on what the sensor value is. This is working.
The problem is the scenes keep re-launching every half-second or so, because they are getting a constant stream of midi cntrl messages. I need some way to let either a single message through or just gate the stream so it sends 127 for a say 200ms and then back to 0. This will be enough to launch the scene and not then to re-trigger it.
By the way I have tried onebang and gate but without much success, and i think its because of my newbie-ness. If anyone has any objects or advice I'd be very grateful. Will post my patch if that would help.
Thanks for your time