Two knobs controlling eachother
-
Is there a better way to achieve this than the code below?
const var knobs2 = []; knobs2[0] = Content.getComponent("PITCHER_ATTACK"); knobs2[1] = Content.getComponent("PITCHATTACK"); knobs2[0].setControlCallback(knobCB2); knobs2[1].setControlCallback(knobCB2); inline function knobCB2(control, value) { for (i = 0; i < 2; i++) { if (control == knobs2[i]) continue; //Skip the knob that triggered the callback knobs2[i].setValue(value); } for (te = 0; te < TE.length; te++) { TE[te].setAttribute(2, value); } }
-
@danh use the
linkedTo
property? -
I have a video all about linking knobs you may want to check out
-
@christoph-hart Sounds good, can't see anything in the docs, how do you use it?
-
@d-healey is this video on YouTube or Patreon?
-
@trillbilly It's on YouTube, same one I linked to in your thread.
-
@d-healey that explains it, I've only made it a fraction of the way through right now lol
-