inverse operators

Guenter Geiger geiger at epy.co.at
Thu Jan 25 11:56:36 CET 2001



.... and for calculating -x you could use a [* -1] box ... and finally
for really heavy calculations use the "expr" external from the
extra package.

Guenter 


pix at test.at writes:
 > I fear everyone might respond to this, but here is my solution anyhow:
 > 
 > you use a trigger, first to send x into the right argument of a "/"
 > object, and then bang a "1" message object, which is connected to the hot
 > (left) inlet of the "/" object.
 > 
 > here it is as a patch:
 > 
 > #N canvas 510 175 450 300 10;
 > #X floatatom 24 23 4 0 0;
 > #X obj 24 55 t b f;
 > #X msg 24 87 1;
 > #X obj 36 119 /;
 > #X floatatom 36 155 4 0 0;
 > #X connect 0 0 1 0;
 > #X connect 1 0 2 0;
 > #X connect 1 1 3 1;
 > #X connect 2 0 3 0;
 > #X connect 3 0 4 0;
 > 
 > it's possible that a "f 1" object would be more efficient than a
 > "1" message object, but i'm not sure about the internals. miller?
 > 
 > pix.
 > 
 > On Wed, 24 Jan 2001, Thomas Grill wrote:
 > 
 > > Hi list!
 > > Maybe this is a stupid question:
 > > How do i easily calculate 1/x or -x, of course with a hot inlet for x?
 > > I can't figure out which object to use efficiently (except pow(x,-1) or so)
 > > without converting into signals.
 > > 
 > > Maybe appropriate objects (inv and neg) should be built into pd.
 > > 
 > > greetings!
 > > Thomas
 > > 
 > > 
 > 



More information about the Pd-list mailing list