aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/scripts/pak.py
blob: 17841630b6d98c719a9490bbaed086aad6b198d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)