Custom observable events?


(joule) #1

Is there a clean way of generating custom observable events (not a workaround)? Since there are some events (“context parameters”) in the API that don’t look quite native to the renoise.Document.observable list classes (like line_notifier), I thought there might be a way.

Click to view contents

I think it would make sense if renoise.Document.ObservableBang would support passing the function( argument ), like so:

local hello = renoise.Document.ObservableBang()
hello:add_notifier(function(event)
 print(event)
end)
hello:bang("something")