Listen for Pbindef global dictionary changes and trigger function

Hi everyone,
I’m trying to integrate my MIDI controller with Supercollider, and I’d like to notify with LEDs whenever I declare, start, stop and clear a Pbindef. Now, by running

Pbindef.gui;

you can see the global dictionary of Pdefs and their state. Since the view is real time reactive to the Pbindefs state I guess there’s a trigger everytime one of the actions listed before is executed. How can I listen for them and launch my own function?

Thanks,
Daniele

1 Like