[PD] "new wrap incompatible object" error

Mathieu Bouchard matju at artengine.ca
Tue Aug 17 02:43:26 CEST 2010


On Mon, 16 Aug 2010, Hans-Christoph Steiner wrote:

> a broken wrap is really an error in my opinion.

Anyway, [gf/wrap] is only 7 short lines of code, so why bother with this 
discussion.

\class GFWrap : FObject {
 	float b;
 	\constructor (float f=1) {b=f;}
 	\decl 1 float (float f)  {b=f;}
 	\decl 0 float (float f) {out[0](f-floor(f/b)*b);}
};
\end class {install("gf/wrap",2,1);}

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801


More information about the Pd-list mailing list