aboutsummaryrefslogtreecommitdiff
path: root/examples/dispatchertest.pd_lua
blob: 35db321dff6c71fca89f636c85a7a091437866dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local DispatcherTest = pd.Class:new():register("dispatchertest")

function DispatcherTest:initialize(name, atoms)
  self.inlets = 3
  return true
end

function DispatcherTest:in_1_float(f)
  pd.post("float: " .. f)
end

function DispatcherTest:in_2_symbol(s)
  pd.post("symbol: " .. s)
end

function DispatcherTest:in_3(sel, atoms)
  pd.post(sel .. ":")
  for i,v in ipairs(atoms) do
    pd.post(i .. " = " .. v)
  end
end