Is there any object somewhere that manages a FIFO (first-in-first-out) buffer for lists? I could abuse maphash for this purpose, but I'm afraid such an abstraction would look ugly.
thanks, j#|@
Hi Johannes,
there is a float-fifo in maxlib (http://www.akustische-kunst.org/puredata/maxlib/fifo.zip), in case your lists aren't too long and consist of floats you could build an abstraction with one fifo object for each list element. Or just try to add list support to the fifo sources...
Olaf
Johannes Taelman schrieb:
Is there any object somewhere that manages a FIFO (first-in-first-out) buffer for lists? I could abuse maphash for this purpose, but I'm afraid such an abstraction would look ugly.
thanks, j#|@
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
hi Johannes,
not a very pretty, but a simple way, would be using 'length' and 'delete' messages to a coll.
Krzysztof
Johannes Taelman wrote:
Is there any object somewhere that manages a FIFO (first-in-first-out) buffer for lists? I could abuse maphash for this purpose, but I'm afraid such an abstraction would look ugly.
#N canvas 167 257 450 411 12; #X obj 39 325 coll fifo; #C restore; #X obj 167 204 coll fifo; #C restore; #X msg 167 165 length; #X floatatom 167 243 5 0 0 0 - - -; #X msg 39 24 test stuff; #X obj 39 286 prepend 0; #X msg 59 243 set $1; #X obj 39 125 t a b; #X msg 277 24 pop; #X obj 39 366 print; #X msg 168 125 0 , delete 0; #X msg 52 58 another test; #X msg 68 90 yet another...; #X msg 168 286 clear; #X obj 277 204 coll fifo; #C restore; #X msg 277 165 length; #X obj 277 238 sel 0; #X connect 0 0 9 0; #X connect 1 0 3 0; #X connect 1 0 6 0; #X connect 2 0 1 0; #X connect 4 0 7 0; #X connect 5 0 0 0; #X connect 6 0 5 0; #X connect 7 0 5 0; #X connect 7 1 2 0; #X connect 8 0 15 0; #X connect 10 0 0 0; #X connect 11 0 7 0; #X connect 12 0 7 0; #X connect 13 0 0 0; #X connect 14 0 3 0; #X connect 14 0 16 0; #X connect 15 0 14 0; #X connect 16 1 10 0;