aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/scripts/pak.py
blob: 6394570d740eb6170d5b3dc3b6f06ece062b5bf3 (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,arg):
        # arg should be type-checked!
        self.lst[n-1] = arg
        self._outlet(1,self.lst)