Unwanted feedback

Discuss Lemur and share techniques.
Post Reply
newtfish
Newbie
Posts: 40
Joined: 09 Apr 2011 19:32

Unwanted feedback

Post 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?
midimockup
Newbie
Posts: 41
Joined: 08 Nov 2012 15:55

Re: Unwanted feedback

Post 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.
newtfish
Newbie
Posts: 40
Joined: 09 Apr 2011 19:32

Re: Unwanted feedback

Post by newtfish »

Brilliant. Thanks so much for your help :)
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Unwanted feedback

Post 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
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
leehu
Regular
Posts: 53
Joined: 15 Sep 2012 10:08
Location: London
Contact:

Re: Unwanted feedback

Post by leehu »

I always check the z parameter when dealing with updating multiple controls - not sure quite what you're after here tho...
newtfish
Newbie
Posts: 40
Joined: 09 Apr 2011 19:32

Re: Unwanted feedback

Post 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
Post Reply