File: dispatchertest.pd_luax

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 (13 lines) | stat: -rw-r--r-- 345 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
return function (self, sel, atoms)
  self.inlets = 3
  function self:in_1_float(f)  pd.post("float: "  .. f) end
  function self:in_2_symbol(s) pd.post("symbol: " .. s) end
  function self:in_3_foo(atoms)
    pd.post("foo(")
    for i,v in ipairs(atoms) do
      pd.post("  " .. i .. " = " .. v)
    end
    pd.post(")")
  end
  return true
end