aboutsummaryrefslogtreecommitdiff
path: root/examples/packel.pd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/packel.pd')
-rw-r--r--examples/packel.pd20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/packel.pd b/examples/packel.pd
new file mode 100644
index 0000000..b7f2b56
--- /dev/null
+++ b/examples/packel.pd
@@ -0,0 +1,20 @@
+#N canvas 169 380 720 387 10;
+#X obj 48 34 packel;
+#X text 112 33 get the nth element of a package;
+#X msg 62 161 uno dva drei quattre five;
+#X floatatom 105 219;
+#X obj 62 239 packel 3;
+#X obj 62 268 print ELEMENT;
+#X msg 62 307 uno dva drei quattre five;
+#X obj 62 327 packel -2;
+#X obj 62 351 print REVERSE_ELEMENT;
+#X text 275 210 creation: packel [<n>];
+#X text 140 220 n;
+#X text 314 227 n indicates the index of the element to be output;
+#X text 314 245 n==0 ouputs the whole package;
+#X text 314 262 n<0 ouputs the nth-last element;
+#X connect 2 0 4 0;
+#X connect 3 0 4 1;
+#X connect 4 0 5 0;
+#X connect 6 0 7 0;
+#X connect 7 0 8 0;