[PD-cvs] externals/clr/Counter Counter.cs,1.1,1.2
Thomas Grill
xovo at users.sourceforge.net
Wed Mar 8 02:59:26 CET 2006
Update of /cvsroot/pure-data/externals/clr/Counter
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25474/clr/Counter
Modified Files:
Counter.cs
Log Message:
finally implemented efficient method registering
other cleanups and improvements
Index: Counter.cs
===================================================================
RCS file: /cvsroot/pure-data/externals/clr/Counter/Counter.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Counter.cs 7 Mar 2006 13:18:31 -0000 1.1
--- Counter.cs 8 Mar 2006 01:59:24 -0000 1.2
***************
*** 7,14 ****
--- 7,19 ----
PureData.External
{
+ PureData.Atom[] args;
+
public Counter(PureData.AtomList args)
{
Post("Count.ctor "+args.ToString());
+ // that's the way to store args (don't just copy an AtomList instance!!)
+ this.args = (PureData.Atom[])args;
+
// pd.AddInlet(x, "init", ParametersType.Float);
// pd.AddOutlet(x, ParametersType.Float);
***************
*** 22,25 ****
--- 27,32 ----
Add(new MethodSymbol(obj.MySymbol));
Add(new MethodList(obj.MyList));
+ Add("set",new MethodList(obj.MySet));
+ Add(new MethodAnything(obj.MyAnything));
Post("Count.Main");
***************
*** 46,50 ****
}
! /*
public void SendOut()
{
--- 53,66 ----
}
! protected virtual void MySet(PureData.AtomList l)
! {
! Post("Count-SET "+l.ToString());
! }
!
! protected virtual void MyAnything(PureData.Symbol s,PureData.AtomList l)
! {
! Post("Count-("+s.ToString()+") "+l.ToString());
! }
! /*
public void SendOut()
{
More information about the Pd-cvs
mailing list