I'm making a patch that utilises the ubutton object
Basically I'm using the mousestate object to set the frequency of an oscillator, I've chosen to use the area inside the ubutton as the pitch (horizontal value) and amplitude (vertical value) of the oscillator.
When the mouse is clicked down a gate opens passing each value to a few if statements that determine whether the values passed are within the are of the ubutton.
My problem is that as soon as i move the patch all my processing becomes void as the ubuttons horizontal and vertical values have changed.
I'm wondering if there's any way round this e.g. fixing the values of a window even if its moved around?