aboutsummaryrefslogtreecommitdiff
path: root/extensions/xgui/utils
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/xgui/utils')
-rw-r--r--extensions/xgui/utils/bounded.pd43
-rw-r--r--extensions/xgui/utils/concat_set_bang.pd22
-rw-r--r--extensions/xgui/utils/concat_value.pd26
-rw-r--r--extensions/xgui/utils/convert.pd10
-rw-r--r--extensions/xgui/utils/in.pd37
-rw-r--r--extensions/xgui/utils/init2.pd27
-rw-r--r--extensions/xgui/utils/moy.pd13
-rw-r--r--extensions/xgui/utils/subspace.pd50
-rw-r--r--extensions/xgui/utils/unique.pd10
-rw-r--r--extensions/xgui/utils/value2.pd13
-rw-r--r--extensions/xgui/utils/valueinit.pd8
11 files changed, 259 insertions, 0 deletions
diff --git a/extensions/xgui/utils/bounded.pd b/extensions/xgui/utils/bounded.pd
new file mode 100644
index 00000000..b2526983
--- /dev/null
+++ b/extensions/xgui/utils/bounded.pd
@@ -0,0 +1,43 @@
+#N canvas 392 177 383 289 10;
+#X obj 16 39 inlet;
+#X obj 16 229 outlet;
+#X text 16 4 the bounded object : Number $name $value $min $max $smin
+$smax;
+#X obj 96 229 outlet;
+#X text 199 228 dh20020427;
+#X obj 130 64 loadbang;
+#X obj 131 114 \$3;
+#X obj 154 114 \$4;
+#X obj 177 114 \$5;
+#X obj 201 114 \$6;
+#X obj 16 205 number \$1;
+#X obj 96 205 number \$1;
+#X obj 130 88 t b b b b b;
+#X obj 225 114 \$2;
+#X obj 130 136 pack f f f f f;
+#X obj 48 91 bang;
+#X text 209 237 dh20020523;
+#X msg 130 160 \$5 \, subspace \$1 \$2 \$3 \$4 \, bound \$1 \$2;
+#X obj 93 39 inlet;
+#X obj 48 115 bang;
+#X connect 0 0 10 0;
+#X connect 0 0 15 0;
+#X connect 5 0 12 0;
+#X connect 6 0 14 0;
+#X connect 7 0 14 1;
+#X connect 8 0 14 2;
+#X connect 9 0 14 3;
+#X connect 10 0 1 0;
+#X connect 11 0 3 0;
+#X connect 12 0 6 0;
+#X connect 12 1 7 0;
+#X connect 12 2 8 0;
+#X connect 12 3 9 0;
+#X connect 12 4 13 0;
+#X connect 13 0 14 4;
+#X connect 14 0 17 0;
+#X connect 15 0 11 0;
+#X connect 17 0 11 0;
+#X connect 18 0 11 0;
+#X connect 18 0 19 0;
+#X connect 19 0 10 0;
diff --git a/extensions/xgui/utils/concat_set_bang.pd b/extensions/xgui/utils/concat_set_bang.pd
new file mode 100644
index 00000000..d617e596
--- /dev/null
+++ b/extensions/xgui/utils/concat_set_bang.pd
@@ -0,0 +1,22 @@
+#N canvas 273 213 466 323 12;
+#X text 11 6 concat;
+#X obj 14 39 inlet;
+#X text 67 38 left;
+#X obj 60 115 drip;
+#X msg 60 140 add2 \$1;
+#X obj 142 112 bang;
+#X obj 90 237 outlet;
+#X msg 90 210 color blue;
+#X obj 236 241 outlet;
+#X obj 5 138 t b b;
+#X msg 142 138 set set;
+#X connect 1 0 5 0;
+#X connect 1 0 3 0;
+#X connect 1 0 9 0;
+#X connect 3 0 4 0;
+#X connect 4 0 7 0;
+#X connect 5 0 10 0;
+#X connect 7 0 6 0;
+#X connect 9 0 8 0;
+#X connect 9 1 7 0;
+#X connect 10 0 7 0;
diff --git a/extensions/xgui/utils/concat_value.pd b/extensions/xgui/utils/concat_value.pd
new file mode 100644
index 00000000..a9e3b83d
--- /dev/null
+++ b/extensions/xgui/utils/concat_value.pd
@@ -0,0 +1,26 @@
+#N canvas 269 200 470 320 12;
+#X text 11 6 concat;
+#X obj 14 39 inlet;
+#X text 67 38 left;
+#X obj 60 115 drip;
+#X msg 60 140 add2 \$1;
+#X obj 97 78 bang;
+#X msg 157 151 set my_text_x;
+#X obj 90 237 outlet;
+#X msg 157 125 set set \$1;
+#X obj 12 114 bang;
+#X obj 157 71 loadbang;
+#X msg 90 210 my_text test;
+#X obj 157 98 value \$1;
+#X connect 1 0 5 0;
+#X connect 1 0 3 0;
+#X connect 1 0 9 0;
+#X connect 3 0 4 0;
+#X connect 4 0 11 0;
+#X connect 5 0 6 0;
+#X connect 6 0 11 0;
+#X connect 8 0 6 0;
+#X connect 9 0 11 0;
+#X connect 10 0 12 0;
+#X connect 11 0 7 0;
+#X connect 12 0 8 0;
diff --git a/extensions/xgui/utils/convert.pd b/extensions/xgui/utils/convert.pd
new file mode 100644
index 00000000..6affbcef
--- /dev/null
+++ b/extensions/xgui/utils/convert.pd
@@ -0,0 +1,10 @@
+#N canvas 343 358 450 300 12;
+#X text 18 10 convert truc machin;
+#X obj 19 43 inlet;
+#X obj 19 71 route \$1;
+#X obj 19 122 outlet;
+#X obj 19 96 concat \$2;
+#X text 173 127 dh20020401;
+#X connect 1 0 2 0;
+#X connect 2 0 4 0;
+#X connect 4 0 3 0;
diff --git a/extensions/xgui/utils/in.pd b/extensions/xgui/utils/in.pd
new file mode 100644
index 00000000..2d2c84dd
--- /dev/null
+++ b/extensions/xgui/utils/in.pd
@@ -0,0 +1,37 @@
+#N canvas 330 344 290 248 10;
+#X obj 13 18 inlet;
+#X obj 64 18 inlet;
+#X obj 144 18 inlet;
+#X obj 21 149 >=;
+#X obj 64 41 init2 \$1 0;
+#X obj 144 41 init2 \$2 0;
+#X obj 101 148 <=;
+#X obj 13 41 t f f;
+#X obj 59 181 &&;
+#X obj 59 212 outlet;
+#X text 117 212 dh20010815;
+#X obj 148 92 max;
+#X obj 58 109 min;
+#X obj 150 122 max;
+#X obj 60 82 min;
+#X text 127 222 dh20020216;
+#X connect 0 0 7 0;
+#X connect 1 0 4 0;
+#X connect 2 0 5 0;
+#X connect 3 0 8 0;
+#X connect 4 0 13 1;
+#X connect 4 0 11 0;
+#X connect 4 0 14 0;
+#X connect 4 0 12 1;
+#X connect 5 0 14 1;
+#X connect 5 0 13 0;
+#X connect 5 0 11 1;
+#X connect 5 0 12 0;
+#X connect 6 0 8 1;
+#X connect 7 0 3 0;
+#X connect 7 1 6 0;
+#X connect 8 0 9 0;
+#X connect 11 0 6 1;
+#X connect 12 0 3 1;
+#X connect 13 0 6 1;
+#X connect 14 0 3 1;
diff --git a/extensions/xgui/utils/init2.pd b/extensions/xgui/utils/init2.pd
new file mode 100644
index 00000000..97a8bd25
--- /dev/null
+++ b/extensions/xgui/utils/init2.pd
@@ -0,0 +1,27 @@
+#N canvas 544 230 405 255 10;
+#X text 205 173 (c) musil@iem.kug.ac.at;
+#X text 246 186 IEM KUG;
+#X text 221 200 graz \, austria 2001;
+#X obj 154 37 inlet;
+#X obj 67 86 f \$1;
+#X obj 88 34 loadbang;
+#X obj 67 110 t f f;
+#X obj 67 139 spigot;
+#X text 225 83 dh20010325;
+#X obj 87 57 t b b;
+#X obj 116 86 f \$2;
+#X text 136 6 exemple : init \$1 0;
+#X obj 154 183 f;
+#X obj 154 208 outlet;
+#X text 65 185 dh20010429;
+#X text 267 157 tanks to;
+#X connect 3 0 12 0;
+#X connect 4 0 6 0;
+#X connect 5 0 9 0;
+#X connect 6 0 7 0;
+#X connect 6 1 7 1;
+#X connect 7 0 12 0;
+#X connect 9 0 4 0;
+#X connect 9 1 10 0;
+#X connect 10 0 12 0;
+#X connect 12 0 13 0;
diff --git a/extensions/xgui/utils/moy.pd b/extensions/xgui/utils/moy.pd
new file mode 100644
index 00000000..774fef0f
--- /dev/null
+++ b/extensions/xgui/utils/moy.pd
@@ -0,0 +1,13 @@
+#N canvas 176 223 452 302 12;
+#X text 11 7 Moy;
+#X obj 34 44 inlet;
+#X obj 86 44 inlet;
+#X obj 51 115 / 2;
+#X obj 48 80 +;
+#X obj 53 142 outlet;
+#X text 51 177 dh20020428;
+#X text 80 193 ethanol = 2g/l;
+#X connect 1 0 4 0;
+#X connect 2 0 4 1;
+#X connect 3 0 5 0;
+#X connect 4 0 3 0;
diff --git a/extensions/xgui/utils/subspace.pd b/extensions/xgui/utils/subspace.pd
new file mode 100644
index 00000000..3f847316
--- /dev/null
+++ b/extensions/xgui/utils/subspace.pd
@@ -0,0 +1,50 @@
+#N canvas 84 46 443 487 12;
+#X text 21 7 subspace x1 y2 x3 y4 x5 y6 x7 y8;
+#X text 44 66 sub;
+#X text 52 390 sub;
+#X text 239 61 space;
+#X text 241 388 space;
+#X text 21 26 subspace define a region as subspace with their own coords
+;
+#X obj 40 91 inlet;
+#X obj 221 365 outlet;
+#X obj 221 309 pack f f;
+#X obj 40 119 route xy;
+#X msg 221 337 xy \$1 \$2;
+#X obj 40 147 unpack f f;
+#X obj 40 177 t b f;
+#X obj 39 234 t b f;
+#X obj 36 362 outlet;
+#X obj 36 306 pack f f;
+#X msg 36 334 xy \$1 \$2;
+#X obj 40 206 bounded \$0-b1 0 \$1 \$3 \$5 \$7;
+#X obj 237 87 inlet;
+#X obj 237 115 route xy;
+#X obj 237 143 unpack f f;
+#X obj 237 173 t b f;
+#X obj 38 258 bounded \$0-b2 0 \$2 \$4 \$6 \$8;
+#X obj 258 233 t b f;
+#X connect 6 0 9 0;
+#X connect 8 0 10 0;
+#X connect 9 0 11 0;
+#X connect 10 0 7 0;
+#X connect 11 0 12 0;
+#X connect 11 1 13 0;
+#X connect 12 0 17 0;
+#X connect 12 1 17 0;
+#X connect 13 0 22 0;
+#X connect 13 1 22 0;
+#X connect 15 0 16 0;
+#X connect 16 0 14 0;
+#X connect 17 0 15 0;
+#X connect 17 1 8 0;
+#X connect 18 0 19 0;
+#X connect 19 0 20 0;
+#X connect 20 0 21 0;
+#X connect 20 1 23 0;
+#X connect 21 0 17 1;
+#X connect 21 1 17 1;
+#X connect 22 0 15 1;
+#X connect 22 1 8 1;
+#X connect 23 0 22 1;
+#X connect 23 1 22 1;
diff --git a/extensions/xgui/utils/unique.pd b/extensions/xgui/utils/unique.pd
new file mode 100644
index 00000000..10b59a32
--- /dev/null
+++ b/extensions/xgui/utils/unique.pd
@@ -0,0 +1,10 @@
+#N canvas 161 175 452 302 8;
+#X obj 14 15 inlet;
+#X text 14 0 unique;
+#X obj 14 55 \$0;
+#X obj 14 75 outlet;
+#X obj 14 35 bang;
+#X text 13 94 dh20200128;
+#X connect 0 0 4 0;
+#X connect 2 0 3 0;
+#X connect 4 0 2 0;
diff --git a/extensions/xgui/utils/value2.pd b/extensions/xgui/utils/value2.pd
new file mode 100644
index 00000000..dc77c858
--- /dev/null
+++ b/extensions/xgui/utils/value2.pd
@@ -0,0 +1,13 @@
+#N canvas 374 432 450 300 12;
+#X obj 21 43 inlet;
+#X obj 78 44 inlet;
+#X text 17 9 value name value;
+#X obj 56 123 \$2;
+#X obj 78 69 s \$1-value;
+#X obj 78 96 r \$1-value;
+#X obj 56 151 outlet;
+#X text 342 264 dh20020401;
+#X connect 0 0 3 0;
+#X connect 1 0 4 0;
+#X connect 3 0 6 0;
+#X connect 5 0 3 1;
diff --git a/extensions/xgui/utils/valueinit.pd b/extensions/xgui/utils/valueinit.pd
new file mode 100644
index 00000000..04ef3260
--- /dev/null
+++ b/extensions/xgui/utils/valueinit.pd
@@ -0,0 +1,8 @@
+#N canvas 382 472 450 300 12;
+#X text 339 262 dh20020401;
+#X obj 19 87 value \$1;
+#X obj 19 61 \$2;
+#X obj 19 34 loadbang;
+#X text 17 10 valueinit name value;
+#X connect 2 0 1 0;
+#X connect 3 0 2 0;