Is this the Right way to do it?
-
//-------------------------------------------------------------------------
inline function onKnob2Control(component, value)
{
local index = EQ.Gain + 1 * EQ.BandOffset;
EQ.setAttribute(index, value*-16);
EQ.setAttribute(EQ.Gain + 0 * EQ.BandOffset, value*-.5);
};
Content.getComponent("Knob2").setControlCallback(onKnob2Control);All I want is, when I turn the Knob2 UP the value of the point 0 in the EQ turn down by 1/2 of the amount that I turn up in knob2 (only the point in the EQ not the knob1)
Ex: 10 up = (5 down)
I hope you urdestand it.
HiseSnippet 1115.3oc0W8zaaaCEmx1JqVaqqsH.6pP1EmtjTa2jzNDTD23XWXzkDm4zhsScLRTIDghTShJKNEEnG1mm7UX6CPuuqam10ALryaORIaI655jXzNfoCF98meT+dOx26Q0MT3PhhDgHixGzOffL9Dyd84xiadLlxQc1FYbSycvQRRnchps5GfihHtHCihOQovnbIj94O2bKLCycHYpPnmKnNjul5SkYZ613oTFqM1kb.0Om2q1niif2TvDw.eJZVEEfcNAeDYWrxsBlHi4Z4RkhvdRrjDA9rkvseuiE+HOw+mSinGxHJgZndvBknF07XJys6fXMBgLJ0MKxKlD4yatC0kNTeVF3VZC1YHxmCLJLMJU6ZPIibTpTBktsYOmPZfLyhhOerYGNrg3ggTcdpj3KpvQEMaJ.O3xU7wmPZGBBCQTY8pUWxF9YwMrrfzcjz9Tbncq8sejsdmekiHxVddDGYkEZs+Bi51S4hCqAdNX8AeaJ7CDbPnxBZqJDiBn9TATW+Jrt28V980iEkynbhsWL2QREbaAWyLEGBErJNCHvR.EYwjEsdoUYlvAyrobWxY.cas+JpC21eocU66pj1Byc2yyKhH2vpLHC+4wRYH8vXIohFU5hc25pL6q1vZpoHE9T5zDyXGBmyqLJK0IkIGH0mVfXCOuqXo10MVVt15KNAelR1YHxUV6xRC0mVZndVZHWzuqPR1iWQugY8JK6wM44MQaoqEiDNQyptPgSCXEdr+gjv7GWTNBkoiV6O2Uq12IIkjyQAuCmJ2KfjJ2VvbU0zp++1cJPo4TnmQgTFBtJ0cLtYZGidLpKIDQgE4iL0mqPZxm1s80Ox5O1DckAWeTvyewutI5Yc1FKwp9VozAnX.ITRUYBisImBM9S5hU1baRzIRQfluomAfIMWJiOKa1v20n+PgFAMhj8U404zNh7ottLRWQDUsukahzOCCtB5QOWy7WN+EO42O+m1zO+PKDxGeV9YXQwddzyzSa7nL+H3LePGeXHDx3NlOKhX6R7vwLoczIv5.kmmPbOPn8GcMBt54BtWe5+GBt2d5DLWT3FyvxQGVpZMjZPQ37SnTSg3PfzOOoFeBZo2cUT0bUQWRMxUjt21rKU5b7j4agIvWUQ2GX9ldejO0LYLbFYKY19am5kOJc0Z.kQkK8hHe1fR3lwgmRZ8Co7n09ivici8aSYvML.NXZT.BG0DgpoYse6MuYoFJE0RUz3K96CzJpO5sG4t2ebEqlo3VZHqkp36m+hO+WTJVevh13uNW6wCFeMd33J9p7KZ61GzhigrjdG2n36oqyg9FQrjxOZGLTjAkblPNpGbwVGBrex4D1vTUpbUkrhR8H5Tmow+.OoFqojMRMVafw+SdG9XmPwKbRFUnNdbCsFHt45qkWF99.P1d3.FSypqTU01h9BGG0gkkqgPSFS8Y.y8mALqNCXVaFvr9Lf4Ay.lGNULpuV4wwRgeRCMPQ2V5Y0FFYmzKh9WrZ8GaB
-
@Jay Here you go. A common function will be better for this kind of operations ;)
HiseSnippet 1041.3ocuV0saiSDEdbRMrw.K6JwCfUuxAZirc+YWTEZy1TGTzRaSHgJj1KplXOoYTsmIq83RSQHwE7PvSA2yE7t.uA7F.mw1I1NqanDAatJy4b9Ny2bli+NS+PtKIJhGhTZLZ9LBR4CUGNmIl1YJlxP8NAo7X0SwQBRndpoimOCGEQ7PJJ0+RoAkFagR98mu3XrOl4RxMgPWvotjuhFPE4V629UTe+tXOxHZPgn2ucOWNqC2mGC7otpIZF18Z7UjyvxvpohTdOGOpfGNTfEjHjxVGy8lObJ+6XoweAMhN1mHWXgFBIJ0bWtumjwRqnNSo9d8WbtiPPV5mWEpmVE9D0Sodzk1yqFOIwgdNhh0CkZ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