[PD-cvs] externals/clr/Counter Counter.cs,1.2,1.3

Thomas Grill xovo at users.sourceforge.net
Wed Mar 8 17:48:30 CET 2006


Update of /cvsroot/pure-data/externals/clr/Counter
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24368/clr/Counter

Modified Files:
	Counter.cs 
Log Message:
added inlet and outlet functions
added send functions
practically ready to work with!

Index: Counter.cs
===================================================================
RCS file: /cvsroot/pure-data/externals/clr/Counter/Counter.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Counter.cs	8 Mar 2006 01:59:24 -0000	1.2
--- Counter.cs	8 Mar 2006 16:48:27 -0000	1.3
***************
*** 9,12 ****
--- 9,14 ----
      PureData.Atom[] args;
  
+     float farg;
+ 
      public Counter(PureData.AtomList args)
  	{
***************
*** 16,21 ****
          this.args = (PureData.Atom[])args;
  
! //        pd.AddInlet(x, "init", ParametersType.Float);
! //        pd.AddOutlet(x, ParametersType.Float);
      }
  
--- 18,24 ----
          this.args = (PureData.Atom[])args;
  
!         AddInlet(s_list,new PureData.Symbol("list2"));
!         AddInlet(ref farg);
!         AddOutletBang();
      }
  
***************
*** 28,31 ****
--- 31,35 ----
          Add(new MethodList(obj.MyList));
          Add("set",new MethodList(obj.MySet));
+         Add("send",new MethodList(obj.MySend));
          Add(new MethodAnything(obj.MyAnything));
  
***************
*** 35,39 ****
      protected virtual void MyBang() 
      { 
!         Post("Count-BANG"); 
      }
  
--- 39,44 ----
      protected virtual void MyBang() 
      { 
!         Post("Count-BANG "+farg.ToString()); 
!         Outlet(0);
      }
  
***************
*** 41,44 ****
--- 46,50 ----
      { 
          Post("Count-FLOAT "+f.ToString()); 
+         Outlet(0,f);
      }
  
***************
*** 46,49 ****
--- 52,56 ----
      { 
          Post("Count-SYMBOL "+s.ToString()); 
+         Outlet(0,s);
      }
  
***************
*** 51,54 ****
--- 58,62 ----
      { 
          Post("Count-LIST "+l.ToString()); 
+         Outlet(0,l);
      }
  
***************
*** 56,59 ****
--- 64,74 ----
      { 
          Post("Count-SET "+l.ToString()); 
+         Outlet(0,new PureData.Symbol("set"),l);
+     }
+ 
+     protected virtual void MySend(PureData.AtomList l) 
+     { 
+         Send(new PureData.Symbol("receiver"),l);
+         Send(new PureData.Symbol("receiver2"),(PureData.Atom[])l);
      }
  
***************
*** 61,64 ****
--- 76,80 ----
      { 
          Post("Count-("+s.ToString()+") "+l.ToString()); 
+         Outlet(0,s,l);
      }
      /*





More information about the Pd-cvs mailing list