Page 1 of 1

Unwanted feedback

Posted: 09 Mar 2014 14:11
by newtfish
Hi,

Ive got two Fader objects (fader1, fader2), which both move each other. I have two scripts in the fader1 object, which enable this (bidirectional)

Script1: On Expression - x

fader2.x = x

Script2: On Expression - fader2.x

x = fader2.x

This enables bidirectional support, so when I move one fader the other moves and vice versa.

However, the problem is that when I send OSC into Fader2, I get feedback (Fader1 sends a signal back) causing an unwanted feedback loop

Is there any way I can stop this loop from happening, so that on OSC, there is no output?

Re: Unwanted feedback

Posted: 09 Mar 2014 20:55
by midimockup
Yes this is always a problem with bidirectionality. The strategy is to use the "return" command which bypasses a script. Alter your script so that unwanted messages are bypassed.

Re: Unwanted feedback

Posted: 09 Mar 2014 21:14
by newtfish
Brilliant. Thanks so much for your help :)

Re: Unwanted feedback

Posted: 10 Mar 2014 01:05
by Macciza
Hi
depending on what you are doing you may be able to use 'Alias's' instead, to duplicate the Faders rather then scripting it ...
Right click Object and Create Alias . ..

Cheers

Re: Unwanted feedback

Posted: 12 Mar 2014 15:26
by leehu
I always check the z parameter when dealing with updating multiple controls - not sure quite what you're after here tho...

Re: Unwanted feedback

Posted: 20 Mar 2014 19:12
by newtfish
just wondering is there any way to do this with a switch? Switches dont seem to have the z parameter so Im a bit stuck