[PD-dev] list math

Frank Barknecht fbar at footils.org
Tue Feb 14 08:56:39 CET 2006


Hallo,
B. Bogart hat gesagt: // B. Bogart wrote:

> If the difference between the list clipper and the float clipper is just
> being able to use lists, should we just have one clipper that acts as it
> should based on the type of data it gets? 

This is often not possible, unless we want to give up automatic
unpacking of lists over inlets. Like many objects [clip] distributes
elements of incoming lists as arguments (see attached), so we
definitely need two objects to handle floats and lists. Pd is not C++. ;)

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__
-------------- next part --------------
#N canvas 0 0 450 300 10;
#X obj 115 119 clip 0 10;
#X obj 115 85 pack 0 0 10;
#X floatatom 115 64 5 0 0 0 - - -;
#X floatatom 53 81 5 0 0 0 - - -;
#X floatatom 115 164 5 0 0 0 - - -;
#X floatatom 187 66 5 0 0 0 - - -;
#X obj 284 136 /;
#X obj 284 114 list prepend 1;
#X floatatom 284 165 5 0 0 0 - - -;
#X floatatom 284 87 5 0 0 0 - - -;
#X connect 0 0 4 0;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 3 0 0 0;
#X connect 5 0 1 2;
#X connect 6 0 8 0;
#X connect 7 0 6 0;
#X connect 9 0 7 0;


More information about the Pd-dev mailing list