I'm newish to PD, so please forgive me if there is a really simple answer to this (I have searched the forum but without any luck!)
I am writing a patch where I want to use both an external MIDI control message and a mouse operated vslider object to change the same parameter. The reasons behind this are a little involved but I can explain if necessary.
This is what I want to achieve - I change the parameter value by moving the slider with the mouse, and then use an external MIDI controller to increase or decrease the value depending on whether I turn the knob clockwise or anti-clockwise.
I've written an abstraction that looks at the MIDI input to see whether it's increasing or decreasing and output +1 if it's increasing, and -1 if decreasing for each change.
I then need to sum the +/- 1 with the current value of the fader - but obviously when I send the sum back to the fader to update it, I get a loop and a stack overload.
Any ideas greatly appreciated!!!