aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/pd_help/@cast.pd
diff options
context:
space:
mode:
Diffstat (limited to 'externals/gridflow/pd_help/@cast.pd')
-rw-r--r--externals/gridflow/pd_help/@cast.pd46
1 files changed, 46 insertions, 0 deletions
diff --git a/externals/gridflow/pd_help/@cast.pd b/externals/gridflow/pd_help/@cast.pd
new file mode 100644
index 00000000..92543dee
--- /dev/null
+++ b/externals/gridflow/pd_help/@cast.pd
@@ -0,0 +1,46 @@
+#N canvas 435 101 684 379 10;
+#X text 14 15 @cast;
+#X text 143 14 returns a grid of the same dimensions containing all
+the same values after type conversion. note that while casting to a
+smaller type \, overflowing values will be truncated.;
+#X text 626 13 gridflow;
+#X text 142 58 numbertypes are: uint8 \, int16 \, int32 \, int64 \,
+float32 \, float64. see doc/architecture.html for more info.;
+#X obj 126 90 nbx 8 14 -1e+37 1e+37 0 1 empty empty empty 0 -6 0 10
+-262144 -1 -1 3.1416 256;
+#X obj 115 136 @pack 4 float32;
+#X obj 78 185 @store;
+#X obj 78 136 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X text 14 136 print it:;
+#X obj 136 234 @print;
+#X obj 78 205 t a a a a;
+#X obj 78 354 @print;
+#X obj 97 314 @print;
+#X obj 116 254 @cast uint8;
+#X obj 116 274 @print;
+#X obj 97 294 @cast int32;
+#X obj 78 334 @cast float64;
+#X obj 216 90 nbx 8 14 -1e+37 1e+37 0 1 empty empty empty 0 -6 0 10
+-262144 -1 -1 42 256;
+#X obj 126 110 nbx 8 14 -1e+37 1e+37 0 1 empty empty empty 0 -6 0 10
+-262144 -1 -1 2004 256;
+#X obj 216 110 nbx 8 14 -1e+37 1e+37 0 1 empty empty empty 0 -6 0 10
+-262144 -1 -1 1e+10 256;
+#X obj 118 158 @redim ( 2 2 );
+#X text 182 295 normally the default;
+#X connect 4 0 5 0;
+#X connect 5 0 20 0;
+#X connect 6 0 10 0;
+#X connect 7 0 6 0;
+#X connect 10 0 16 0;
+#X connect 10 1 15 0;
+#X connect 10 2 13 0;
+#X connect 10 3 9 0;
+#X connect 13 0 14 0;
+#X connect 15 0 12 0;
+#X connect 16 0 11 0;
+#X connect 17 0 5 1;
+#X connect 18 0 5 2;
+#X connect 19 0 5 3;
+#X connect 20 0 6 1;