I have hacked a touchpanel and, using Arduino -> [serial], I've got some fairly stable XY values coming in to Max. I wanted discrete and instantaneous location values - touch somewhere, release, touch again; a brief conversion to the signal domain and a [snapshot~] object does this perfectly. However, before the signal domain conversion, I have 'continuous' XY data, a tiny little bit noisy but usable, which allows for 'click-drag' functionality, or scrolling values. How can I tie these two modalities together in Max, without losing the discrete instantaneous touch data? What I desire is rock solid location data, and the ability to drag/scroll.
if the number attains it's maximum and doesn't change for N milliseconds then it is discrete.....
if the number does change (over N or M milliseconds?) then it is continuous