aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/scripts/pak.py
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/py/scripts/pak.py')
-rw-r--r--externals/grill/py/scripts/pak.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/externals/grill/py/scripts/pak.py b/externals/grill/py/scripts/pak.py
new file mode 100644
index 00000000..17841630
--- /dev/null
+++ b/externals/grill/py/scripts/pak.py
@@ -0,0 +1,14 @@
+import pyext
+
+class pak(pyext._class):
+ def __init__(self,n):
+ # n should be type-checked
+ self._inlets = n
+ self._outlets = 1
+ # initialize list
+ self.lst = [0 for x in range(n)]
+
+ def _anything_(self,n,args):
+ # args should be type-checked!
+ self.lst[n-1] = args
+ self._outlet(1,self.lst)