aboutsummaryrefslogtreecommitdiff
path: root/examples/mutator.pd_lua
blob: 9eec5ad023a59972c8852b06b5d8dffd17b456f6 (plain)
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