File: dispatchertest.pd_lua

package info (click to toggle)
pd-lua 0.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 656 kB
  • ctags: 265
  • sloc: ansic: 1,504; makefile: 314
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