[PD-dev] how math objects respond to a bang

Frank Barknecht fbar at footils.org
Tue Feb 14 10:01:32 CET 2006


Hallo,
IOhannes m zmoelnig hat gesagt: // IOhannes m zmoelnig wrote:

> Mathieu Bouchard wrote:
> > 
> > one guy thinks that atan2 is unary but that +,-,* are binary. so what?
> 
> wow. it seems like i really made it into (another) flame war.

Instead of arguing about this, what about using expr to do atan2? It
accepts a bang as shown in attached patch and is more readable anyway
IMO.

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__
-------------- next part --------------
#N canvas 0 0 450 300 10;
#X obj 141 137 expr atan2($f1 \, $f2);
#X floatatom 141 168 5 0 0 0 - - -;
#X msg 47 105 bang;
#X floatatom 141 106 5 0 0 0 - - -;
#X floatatom 276 111 5 0 0 0 - - -;
#X obj 141 193 print;
#X msg 98 106 1 2;
#X connect 0 0 1 0;
#X connect 1 0 5 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
#X connect 4 0 0 1;
#X connect 6 0 0 0;


More information about the Pd-dev mailing list