2 knobs opposite direction



  • what's the right way of linking two knobs but with different direction.

    ex: when turning knob1 to the right, knob two turn to the left, is like when turning the output knob Up the input knob goes Down.

    This is what I got so far, the inputGain is doing its work but the inputKnb is no following(moving).

    inline function onmasterKnbControl(component, value)
    {
    outputGain.setAttribute(outputGain.Gain, value);
    Compressor.setAttribute(Compressor.LimiterThreshold, -value);
    inputGain.setAttribute(inputGain, -value);
    inputKnb.getValue();
    inputKnb.changed();
    };
    Content.getComponent("masterKnb").setControlCallback(onmasterKnbControl);



  • Here a little snippet with two different solutions, each controlling two gain modules for example
    Is this what you need?

    HiseSnippet 1240.3oc6Y0saaaCElJIrM1atncX2r6DxUNXMoRxtYCnXXpwIYvn4Gi5z+1MEzRzwDQhTPhtKdEEnOB6QJOI6YXuAajTxVzwx+sgVrrYCX.Sxymz24imygGI2Jl4gSRXw.iRmOHBCL9RX6ATduF8PDJn4A.iuAdIk0wjEEwRHbroOIF6wILJX+AQnjDrOvvX8eRZtQoM.pO+wOtOJ.Q8v4SA.ujQ7vGSBI77Ya49LRPvQHe74jPMqq61ziQavBX8ETacnEHB4cI5B7oHoYqAAF24PeBmE2li33DfwF6y7GztG6Wno1+RRBoS.VNvFzVbgRm9HVfujwxYAM5QB7aMTBR.hqRqbAY8TA4qgmP7IilOWXtuZAybD55gwZyhd15zyZwomgF81HkdO.11KlDwyWQxsu.1jxwwcQhs.cZkZKXseeCXClvBJe2Pzk3ihECFgn5dVVOz7wVVa+jJkqT9QOxr8YG+hyad1ol1UJK1WR3luCEa9LQbgi4OXN7JcAl2fEFwnhAU2Rs5VxKw3HrmIB6afnMILJ.Kitj3TglRTG1sqHHr5VoKapVepHclCxTVVoLgFPnXyt8op3aSFUwHIYiYAU8FxzGJt9A8waWo76qTtjFC2MAyeJmGS5zmiqZMztmLlUNSX0N1VVl6nYrR5jl8R4TU0wdwXX2VZ9GDeUDUhHirMPAAcDYLUG2GR8yo6qNKru5rP9p8h4q1E4q1yxWcltu5LgudyfXmhCSpMmvjZSM.q9bPVeqgjoXYu1BK60lPPqs2XxoFolT6E19s41J0xomHJ71oqw0zzXMe4TFGeFs51kee4Rk+vDqzsaQKkcoBvwEsp7Xg3Y.qJseXGb7P8JyNQ0wwK+Bmd4W8SG7RkCMCYzlTB+rHLcZEkAYZnn7LLiTBS4phy2Kq3b6.hONFPD0fuKTEwCT7M+.ulWCVXvN+S.W6lf22cBvUx.eLpCNPgcSn52insnKgQGI.Vb7NEf2A.dQyCPbj77sLsTnuQ3XNQt0Yb.9chFGROsqD7.bxkbVjRryBXESOW49pQN70+r6f7AuxMDckdWJg58w7lqS33n1jeEq2aSHw2O.2R1NjrMHssAebWT+fzRY2X6Yg4piNWY5b80e145lyMXRiqWnw0eKxMmMPn8tVfw39ycmFw12sXhoBSGQr6L2.07alqNw93otb7U7aDA2UD1MtxUeotc56Yerm1syMbxamSw2tIasSzfIyue.hOdWmxh6YKbytvksvQEJ5.8PfOIshtnz8AvVDtWuh46ZEvWQUfO07Mqw9JvzipyI6Fvid8e2t3K9gLrl2CYb2QO00nCtUT4dP8VamwiZ075CvAnwDvWQ748zJL3VvCiYr93d15KlmMGuY1QBRhadqIx8qfJg81DgUa72dH78gsP+aHf34r9bB8hSPhdkE0wgm1OrMqerGVPUJEGH6ezXMYmdoisjikDpMl5qF7mhOYKZKGajsn8vEAKaJuypT9Uo7qR4++TJesYjxC.qR4WkxuJk++Xo70WkxuJkeUJ+s4T9OG2iPjWL6sdoukUYp4lpYD9MU82gVBdhbr4nWOqTaBI9j254IeqF6HTmhQ3rzHpszHpuzHd7RiXukFw2szH99YfP9OA+z9bVXZ7tXhVGpdm1FFGRQhHWUnO3u.uO.dfB
    


  • @ustk yes, thanks


Log in to reply
 

7
Online

550
Users

2.1k
Topics

16.1k
Posts