From 2147d5f788d36ebccb7981c427b7e430b1e4e8cd Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sat, 28 Jan 2006 10:36:25 +0000 Subject: fixed line endings, now for real svn path=/trunk/externals/clr/; revision=4513 --- external/Counter.cs | 148 ++++++++++++++++++++++++++-------------------------- 1 file changed, 74 insertions(+), 74 deletions(-) (limited to 'external/Counter.cs') diff --git a/external/Counter.cs b/external/Counter.cs index 32f9409..9ec6ddc 100755 --- a/external/Counter.cs +++ b/external/Counter.cs @@ -1,74 +1,74 @@ -using System; - -/// -/// Descrizione di riepilogo per Counter. -/// -public class Counter: - PureData.External -{ - public Counter() - { - Post("Count"); - -// EventFloat += new MethodFloat(MyFloat); - } - - public Counter(PureData.Atom[] args) - { - Post("Count with args"); - -// pd.AddInlet(x, "init", ParametersType.Float); -// pd.AddOutlet(x, ParametersType.Float); - } - - // this function MUST exist - public static void Main() - { - Post("Count.Main"); - } - -/* - public void MyBang() - { - Post("Count-BANG"); - } - - public void MyFloat(float f) - { - Post(String.Format("Count-FLOAT {0}",f)); - } -*/ - protected override void MethodBang() - { - Post("Count-BANG"); - } - - protected override void MethodFloat(float f) - { - Post("Count-FLOAT "+f.ToString()); - } - - protected override void MethodSymbol(PureData.Symbol s) - { - Post("Count-SYMBOL "+s.ToString()); - } - - /* - public void Init(float f) - { - curr = (int) f; - } - - public void SendOut() - { - pd.SendToOutlet(x, 0, new Atom(curr)); - } - - public void Sum(float f) - { - curr += (int) f; - pd.SendToOutlet(x, 0, new Atom(curr)); - } - -*/ -} +using System; + +/// +/// Descrizione di riepilogo per Counter. +/// +public class Counter: + PureData.External +{ + public Counter() + { + Post("Count"); + +// EventFloat += new MethodFloat(MyFloat); + } + + public Counter(PureData.Atom[] args) + { + Post("Count with args"); + +// pd.AddInlet(x, "init", ParametersType.Float); +// pd.AddOutlet(x, ParametersType.Float); + } + + // this function MUST exist + public static void Main() + { + Post("Count.Main"); + } + +/* + public void MyBang() + { + Post("Count-BANG"); + } + + public void MyFloat(float f) + { + Post(String.Format("Count-FLOAT {0}",f)); + } +*/ + protected override void MethodBang() + { + Post("Count-BANG"); + } + + protected override void MethodFloat(float f) + { + Post("Count-FLOAT "+f.ToString()); + } + + protected override void MethodSymbol(PureData.Symbol s) + { + Post("Count-SYMBOL "+s.ToString()); + } + + /* + public void Init(float f) + { + curr = (int) f; + } + + public void SendOut() + { + pd.SendToOutlet(x, 0, new Atom(curr)); + } + + public void Sum(float f) + { + curr += (int) f; + pd.SendToOutlet(x, 0, new Atom(curr)); + } + +*/ +} -- cgit v1.2.1