[PD-cvs] externals/clr/external External.cs, 1.5, 1.6 external.csproj, 1.1, 1.2 pd.cs, 1.5, NONE

dmorelli morellid at users.sourceforge.net
Sat Jan 14 03:34:19 CET 2006


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

Modified Files:
	External.cs external.csproj 
Removed Files:
	pd.cs 
Log Message:
outlet ready, multi-instance, split assembly in 2

Index: External.cs
===================================================================
RCS file: /cvsroot/pure-data/externals/clr/external/External.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** External.cs	13 Jan 2006 19:02:37 -0000	1.5
--- External.cs	14 Jan 2006 02:34:17 -0000	1.6
***************
*** 1,10 ****
  using System;
  
- 
  namespace PureData
  {
  	
- 
- 
  	public class External
  	{
--- 1,7 ----
***************
*** 16,21 ****
  		}
  
- 		
- 
  		// this function MUST exist
  		public void SetUp(IntPtr pdClass)
--- 13,16 ----
***************
*** 32,35 ****
--- 27,35 ----
  			pd.AddSelector(x, "selString", "SelString", ParametersType.Symbol);
  			pd.AddSelector(x, "selGenericList", "SelGenericList", ParametersType.List);
+ 
+ 			pd.AddSelector(x, "", "GetBang", ParametersType.Bang);
+ 			pd.AddSelector(x, "", "GetFloat", ParametersType.Float);
+ 			pd.AddSelector(x, "", "GetSymbol", ParametersType.Symbol);
+ 
  			Console.WriteLine("selectors set");
  			pd.AddOutlet(x, ParametersType.Float);
***************
*** 37,45 ****
  		}
  
  
! 
  		public void Sel1()
  		{
  			pd.PostMessage("Sel1 invoked!");
  		}
  
--- 37,60 ----
  		}
  
+ 		public void GetBang()
+ 		{
+ 			pd.PostMessage("GetBang invoked!");
+ 		}
  
! 		public void GetFloat(float f)
! 		{
! 			pd.PostMessage("GetFloat invoked with " + f);
! 		}
! 		
! 		public void GetSymbol(ref string s)
! 		{
! 			pd.PostMessage("GetSymbol invoked with " + s);
! 		}
! 		
  		public void Sel1()
  		{
  			pd.PostMessage("Sel1 invoked!");
+ 			Atom [] a= new Atom[2];
+ 
  		}
  
***************
*** 49,56 ****
  			
  			// testing outlets
! 			Atom[] atoms = new Atom[2];
! 			atoms[0] = new Atom("ciao");
! 			atoms[1] = new Atom(1.5f);
! 			pd.ToOutlet(x, 0, atoms.Length, atoms);
  
  		}
--- 64,73 ----
  			
  			// testing outlets
! 			Atom[] atoms = new Atom[4];
! 			atoms[0] = new Atom(1.5f);
! 			atoms[1] = new Atom("ciao");
! 			atoms[2] = new Atom(2.5f);
! 			atoms[3] = new Atom("hello");
! 			pd.SendToOutlet(x, 0, atoms);
  
  		}
***************
*** 70,73 ****
--- 87,91 ----
  		public void SelGenericList(Atom [] list)
  		{
+ 			Atom [] ret = new Atom[list.Length];
  			for (int i = 0; i<list.Length; i++)
  			{
***************
*** 83,95 ****
  					{
  						pd.PostMessage("" + a.float_value);
  						break;
  					}
  					case (AtomType.Symbol):
  					{
  						pd.PostMessage(a.string_value);
  						break;
  					}
  				}
! 			}		
  		}
  
--- 101,116 ----
  					{
  						pd.PostMessage("" + a.float_value);
+ 						ret[i] = new Atom(a.float_value * 2);
  						break;
  					}
  					case (AtomType.Symbol):
  					{
+ 						ret[i] = new Atom(a.string_value + "-lo-giuro");
  						pd.PostMessage(a.string_value);
  						break;
  					}
  				}
! 			}
! 			pd.SendToOutlet(x, 0, ret);
  		}
  

--- pd.cs DELETED ---

Index: external.csproj
===================================================================
RCS file: /cvsroot/pure-data/externals/clr/external/external.csproj,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** external.csproj	12 Jan 2006 09:24:23 -0000	1.1
--- external.csproj	14 Jan 2006 02:34:17 -0000	1.2
***************
*** 10,14 ****
                  ApplicationIcon = ""
                  AssemblyKeyContainerName = ""
!                 AssemblyName = "PureData"
                  AssemblyOriginatorKeyFile = ""
                  DefaultClientScript = "JScript"
--- 10,14 ----
                  ApplicationIcon = ""
                  AssemblyKeyContainerName = ""
!                 AssemblyName = "External"
                  AssemblyOriginatorKeyFile = ""
                  DefaultClientScript = "JScript"
***************
*** 80,83 ****
--- 80,88 ----
                      HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll"
                  />
+                 <Reference
+                     Name = "PureData"
+                     AssemblyName = "PureData"
+                     HintPath = "PureData.dll"
+                 />
              </References>
          </Build>
***************
*** 94,102 ****
                      BuildAction = "Compile"
                  />
-                 <File
-                     RelPath = "pd.cs"
-                     SubType = "Code"
-                     BuildAction = "Compile"
-                 />
              </Include>
          </Files>
--- 99,102 ----





More information about the Pd-cvs mailing list