[Gridflow-cvs] [svn] commit: r6169 - in /trunk: doc/flow_classes/gf/wrap-help.pd src/classes2.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Aug 16 20:25:52 EDT 2010


Author: matju
Date: Mon Aug 16 20:25:51 2010
New Revision: 6169

Log:
[gf/wrap]: add right inlet and add an argument

Added:
    trunk/doc/flow_classes/gf/wrap-help.pd
Modified:
    trunk/src/classes2.cxx

Modified: trunk/src/classes2.cxx
==============================================================================
--- trunk/src/classes2.cxx (original)
+++ trunk/src/classes2.cxx Mon Aug 16 20:25:51 2010
@@ -1070,8 +1070,10 @@
 \end class {install("gf/sys_gui",1,0);}
 
 \class GFWrap : FObject {
-	\constructor () {}
-	\decl 0 float (float f) {out[0](f-floor(f));}
+	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",1,1);}
 



More information about the Gridflow-cvs mailing list