diff options
Diffstat (limited to 'pd')
-rwxr-xr-x | pd/Atom.cs | 6 | ||||
-rwxr-xr-x | pd/pd.cs | 7 |
2 files changed, 12 insertions, 1 deletions
@@ -18,6 +18,12 @@ namespace PureData this.float_value = f;
this.string_value = "float";
}
+ public Atom(int i)
+ {
+ this.type = AtomType.Float;
+ this.float_value = (float) i;
+ this.string_value = "float";
+ }
public Atom(string s)
{
this.type = AtomType.Symbol;
@@ -25,7 +25,12 @@ namespace PureData {
ToOutlet (x, outlet, atoms.Length, atoms);
}
-
+ public static void SendToOutlet (IntPtr x, int outlet, Atom atom)
+ {
+ Atom [] atoms = new Atom[1];
+ atoms[0] = atom;
+ ToOutlet (x, outlet, atoms.Length, atoms);
+ }
// create an outlet
[MethodImplAttribute (MethodImplOptions.InternalCall)]
private extern static void CreateOutlet (IntPtr x, int type);
|