borispietsch
2020-06-12 19:39:25
Hi,
I tried to controll a motorfader with a feedbackloop. When just sending the feedbackloop, the faders dont stop fireing messages and the fader gets stuck. Therefore I have to kill the feedbacksignal from the DAW, if I move the controller and vice versa.
I got it working with four translators for one fader, but with some problems.
Here´s my Code:
translator 1 (controller to DAW)
Incoming:
B0 66 pp
Rules:
if ga==1 then exit rules, execute Outgoing Action
exit rules, skip Outgoing Action
Outgoing:
B0 66 pp
translator 2 (controller to DAW)
Incoming:
B0 66 pp
Rules:
if ga<1 then ga=1
exit rules, execute Outgoing Action
Outgoing:
None
translator 3 (DAW to controller)
Incoming:
B0 66 pp
Rules:
if ga==0 then exit rules, execute Outgoing Action
exit rules, skip Outgoing Action
Outgoing:
B0 66 pp
translator 4 (DAW to controller)
Incoming:
B0 66 pp
Rules:
if ga>0 then ga=0
exit rules, execute Outgoing Action
Outgoing:
None
So far everything works fine (perfect, if I move the fader in the DAW), but here and there the code does not surpress the Signal properly, when I move the motorfader, and it gets stuck for a moment.
I also want to controll lots of faders and then I would run out of variables (ga), for every fader needs another one (otherwise they get stuck very often).
Im not very familiar with coding, so I have no idea for an elegant and relyably working solution. Would be great if somebody experienced could help here...
Thanks!