Hi folks!
I was creating a metronome GUI today and gave myself a bit of a conceptual problem that I am struggling with. In my patch I have a knob that controls tempo, and a number box that displays BPM. Both the [knob] and the [nbx] send the tempo data to my metro patch (in case I want to select tempo with the knob or just type it in).
My problem: what if I want the changes made in one to be reflected in the other? To make my changes from the [knob] reflect in the [nbx], I just connect the outlet of the [knob] to the [nbx] inlet (DUH!). But what if I also want any changes made in the [nbx] to be reflected in the [knob] as well? Connecting the outlet of [nbx] to [knob] just produces a stack overflow.
I suspect I need some kind of mechanism to output a bang only when the [nbx] changes, connected to a [spigot] so that when the [nbx] changes, it updates the [knob] but the knob's output is momentarily silenced, and vice versa. So far I'm stumped!