Detecting module port connection changes?

Is there some handy way to know/get notified if the module cable connections have been changed? (I need to recalculate some internal state when connections are added/removed/moved.)

There is no callback for cable connections. An alternative method is to use a dsp::BooleanTrigger and if (trigger.process(inputs[...].isConnected()) {...}.

1 Like

Just do it every n samples such that the cpu load is insignificant. That’s one of our big secrets that makes our modules so efficient.

Yeah I am doing it that way at the moment.

1 Like