File: dispatchertest.pd_lua

package info (click to toggle)
pd-lua 0.12.23%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,912 kB
  • sloc: ansic: 3,733; lisp: 66; makefile: 64
file content (21 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (7)
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