I'm having a problem with my signal conditioning: a resistive touchscreen is sending X/Y location data via Arduino to Max. The circuit and Arduino code is optimized, with one minor/major snag - tiny variations in fingertip contact pressure create radical leaps in that data. In order to get 'smooth' predictable values into Max one must maintain continuous pressure, and contact/release must be instantaneous; anything else and my X/Y [pictslider] leaps about all over the shop.
I have been successful in optimizing the hardware and code (through the Max, Arduino and Instructables forums), but the jittery characteristic of this type of touchscreen remains. My question is this: I know what my pseudo code is, which objects are best suited to realise a non-temporal "jitta-killa"? There are numerous solutions using [line], [if], [gate] etc on the forum but most introduce unwanted latency (however small):
"if the value makes a sudden large leap DOWN, ignore that large leap and retain the value before that leap, regardless of number-stream direction".
This is only really vital when values are continuously scrolling (ie during continued contact).
I'm halfway there with this algorithm:
[number] -> [t i i] ->-> (L, R)[>] -> [sel 1 0], which gives me number-stream direction........
This feels a little poorly-explained,