#N canvas 698 51 602 515 12;
#X floatatom 57 393 5 0 0 0 - - -;
#X obj 60 316 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 7600 1;
#X floatatom 57 336 5 0 0 0 - - -;
#X obj 57 368 getstablevalue 500;
#X text 54 33 getstablevalue: \; \; PURPOSE: to trap/send values only
when the changes have stablized after a certain amount of time. \;
\; Similar to debouncing \, but while you may miss the window when
a value is bounced \, this abstraction only sends the value through
if the value is stable for x number of milliseconds. \; \; Particularly
useful in the arduino domain (ex. footpedals or knobs/potentiometers)
and those cases where continuous changes may require pulling significantly
on the cpu.;
#X text 54 250 creation argument: 1/2 of the whole stable time \; left
inlet: the changing value (converts to int) \; right inlet: same as
creation argument.;
#X text 203 311 change the value here then stop changing it;
#X text 204 392 the stable value;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 0 0;
