Hi enrike,

 

>is there a spigot type of object that blocks numbers from a stream unless the value is different than the previous one that arrived?

 

I’ve made such an abstraction some time ago.

Hope it helps.

 

Ingo

 

 

#N canvas 0 0 450 300 10;

#N canvas 1168 484 275 411 new_number_only 1;

#X obj 153 187 coll;

#C restore;

#X obj 47 136 t f f;

#X obj 47 158 pack;

#X floatatom 169 274 5 0 0 0 - - -;

#X obj 153 227 ==;

#X msg 73 73 clear;

#X obj 169 298 == 0;

#X obj 73 180 tgl 15 0 empty empty empty 0 -6 0 10 -262144 -1 -1 1

1;

#X obj 47 195 spigot;

#X obj 136 331 spigot;

#X obj 73 16 inlet;

#X obj 73 53 route clear;

#X obj 136 368 outlet;

#X obj 136 100 t f f f b;

#X msg 187 227 0;

#X connect 0 0 4 0;

#X connect 1 0 2 0;

#X connect 1 1 2 1;

#X connect 2 0 8 0;

#X connect 3 0 6 0;

#X connect 4 0 3 0;

#X connect 5 0 0 0;

#X connect 6 0 7 0;

#X connect 6 0 9 1;

#X connect 7 0 8 1;

#X connect 8 0 0 0;

#X connect 9 0 12 0;

#X connect 10 0 11 0;

#X connect 11 0 5 0;

#X connect 11 1 13 0;

#X connect 13 0 9 0;

#X connect 13 0 1 0;

#X connect 13 1 0 0;

#X connect 13 2 4 1;

#X connect 13 3 14 0;

#X connect 14 0 3 0;

#X restore 187 184 pd new_number_only;

#X floatatom 187 242 5 0 0 0 - - -;

#X msg 267 23 1;

#X msg 267 77 2;

#X msg 267 104 5;

#X msg 267 131 7;

#X msg 267 50 1.5;

#X floatatom 187 23 5 0 0 0 - - -;

#X msg 331 142 clear;

#X connect 0 0 1 0;

#X connect 2 0 0 0;

#X connect 3 0 0 0;

#X connect 4 0 0 0;

#X connect 5 0 0 0;

#X connect 6 0 0 0;

#X connect 7 0 0 0;

#X connect 8 0 0 0;