diff options
-rwxr-xr-x | external/External.cs | 2 | ||||
-rwxr-xr-x | external/external.csproj | 5 | ||||
-rwxr-xr-x | test-clr.pd | 75 |
3 files changed, 53 insertions, 29 deletions
diff --git a/external/External.cs b/external/External.cs index 00947db..8abcd68 100755 --- a/external/External.cs +++ b/external/External.cs @@ -115,6 +115,4 @@ namespace PureData -
-
}
diff --git a/external/external.csproj b/external/external.csproj index 00bd727..f8de34b 100755 --- a/external/external.csproj +++ b/external/external.csproj @@ -94,6 +94,11 @@ BuildAction = "Compile"
/>
<File
+ RelPath = "Counter.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath = "External.cs"
SubType = "Code"
BuildAction = "Compile"
diff --git a/test-clr.pd b/test-clr.pd index 0135d44..4697138 100755 --- a/test-clr.pd +++ b/test-clr.pd @@ -1,30 +1,51 @@ -#N canvas 73 31 623 538 12;
-#X obj 115 402 clr External External.dll;
-#X obj 122 51 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+#N canvas 73 31 756 564 12;
+#X obj 49 51 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
-#X floatatom 138 70 5 0 0 0 - - -;
-#X symbolatom 153 93 10 0 0 0 - - -;
-#X text 219 66 simple messages;
-#X msg 200 130 sel1;
-#X msg 214 153 sel2;
-#X text 261 142 selectors;
-#X msg 223 196 selFloat \$1;
-#X obj 226 177 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144
+#X floatatom 65 70 5 0 0 0 - - -;
+#X symbolatom 80 93 10 0 0 0 - - -;
+#X text 146 66 simple messages;
+#X msg 221 95 sel1;
+#X msg 235 118 sel2;
+#X text 282 107 selectors;
+#X msg 244 161 selFloat \$1;
+#X obj 247 142 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144
-1 -1 0 1;
-#X obj 325 354 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144
+#X obj 227 263 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144
-1 -1 0 1;
-#X text 322 333 mapped to selFloat;
-#X msg 245 274 selGenericList 12 a 0.5 b;
-#X text 244 252 complex list;
-#X obj 114 432 print;
-#X text 204 433 arguments: Class name \, Filename;
-#X connect 0 0 14 0;
-#X connect 1 0 0 0;
-#X connect 2 0 0 0;
-#X connect 3 0 0 0;
-#X connect 5 0 0 0;
-#X connect 6 0 0 0;
-#X connect 8 0 0 0;
-#X connect 9 0 8 0;
-#X connect 10 0 0 1;
-#X connect 12 0 0 0;
+#X text 224 242 mapped to selFloat;
+#X msg 99 216 selGenericList 12 a 0.5 b;
+#X text 98 194 complex list;
+#X obj 82 297 print;
+#X text 43 329 arguments: Class name \, Filename;
+#X obj 438 353 clr Counter External.dll 2;
+#X obj 83 267 clr External;
+#X text 43 345 you omit filename if is the same as classname;
+#X text 40 411 you can pass arguments;
+#X text 39 431 in this case you must provide filename too;
+#X floatatom 438 392 5 0 0 0 - - -;
+#X floatatom 438 302 5 0 0 0 - - -;
+#X msg 510 299 init 0;
+#X text 36 453 the parameter is the initial value of the counter;
+#X floatatom 641 320 5 0 0 0 - - -;
+#X text 408 244 this external sums the value passed in the left inlet
+with the stored one;
+#X obj 411 305 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X text 287 3 more than one class can be compiled in the same assembly
+;
+#X text 37 477 NB: a class corresponding constructor must exist;
+#X connect 0 0 16 0;
+#X connect 1 0 16 0;
+#X connect 2 0 16 0;
+#X connect 4 0 16 0;
+#X connect 5 0 16 0;
+#X connect 7 0 16 0;
+#X connect 8 0 7 0;
+#X connect 9 0 16 1;
+#X connect 11 0 16 0;
+#X connect 15 0 20 0;
+#X connect 16 0 13 0;
+#X connect 21 0 15 0;
+#X connect 22 0 15 0;
+#X connect 24 0 15 1;
+#X connect 26 0 15 0;
|