#N canvas 641 53 509 382 12;
#X msg 68 107 bang;
#X floatatom 68 279 5 0 0 0 - - - 0;
#X text 284 351 updated for Pd version 0.27;
#X text 154 253 creation argument initializes first value;
#X obj 25 15 change;
#X obj 68 253 change 6.5;
#X msg 100 224 set \$1;
#X text 142 197 set the value;
#X text 113 106 output current value;
#X text 121 167 if different from current value \, output and set;
#X floatatom 100 197 5 0 0 0 - - - 0;
#X floatatom 80 167 5 0 0 0 - - - 0;
#N canvas 689 147 577 227 reference 0;
#X obj 10 42 cnv 5 550 5 empty empty INLET: 8 18 0 13 #202020 #000000
0;
#X obj 10 121 cnv 2 550 2 empty empty OUTLET: 8 12 0 13 #202020 #000000
0;
#X obj 10 158 cnv 2 550 2 empty empty ARGUMENT: 8 12 0 13 #202020 #000000
0;
#X obj 9 195 cnv 5 550 5 empty empty empty 8 18 0 13 #202020 #000000
0;
#X text 148 55 float -;
#X obj 30 12 change;
#X text 155 74 bang -;
#X text 205 74 output current value., f 46;
#X text 106 93 set <float> -;
#X text 205 93 set the value., f 46;
#X text 148 131 float - unrepeated value., f 54;
#X text 205 55 input value (repeated numbers are filtered).;
#X text 128 169 1) float - initial value (default 0)., f 54;
#X text 84 13 - eliminate repeated numbers;
#X restore 322 16 pd reference;
#X text 420 17 <= click;
#X obj 8 49 cnv 1 490 1 empty empty empty 8 12 0 13 #000000 #000000
0;
#X obj 80 139 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000
#000000;
#X obj 8 340 cnv 1 490 1 empty empty empty 8 12 0 13 #000000 #000000
0;
#X text 82 16 - eliminate repeated numbers;
#X text 102 138 <-- resending the same number doesn't output;
#X obj 68 306 print change;
#X text 35 58 The [change] object outputs its input only when it changes.
You can "set" the current value \, or bang to force output.;
#X connect 0 0 5 0;
#X connect 1 0 19 0;
#X connect 5 0 1 0;
#X connect 6 0 5 0;
#X connect 10 0 6 0;
#X connect 11 0 5 0;
#X connect 15 0 11 0;
