File: mutator.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 (13 lines) | stat: -rw-r--r-- 262 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
Mutator = pd.Class:new():register("mutator")

function Mutator:initialize()
  self.inlets = 1
  return true
end

function Mutator:in_1_bang()
  pd.post("Radiation Alert!")
  Mutatee.in_1_bang = function(self)
    pd.post("Oh noes! I've been mutated!")
  end
end