Solved Change Filter Mod with a Knob
-
Hi, I try to change the Filter Mod with a Knob. It says Compiled OK but it doesn't work. Can anyone please check my snippet and tell mee what is wrong? Thanks
HiseSnippet 1032.3oc0W8ziaSDEebRlER.V0VgPhaV8jWokUIskREqpHMYSnQrYa15xJtUMwdRxnLdFi831FP6cNv2LNxWD9F.umsyZmkzznrBIVeHJu++yyaleuwihzd73XcDwp9qVDxIVeJ0cgxLq6LlPQFbBwZe5PVrgGYmopyhPVbL2mXYU86QEV0qQRe9quqCSxTd7BUDxEZgG+TQfvTncT6ePHk8Y97WIBJ48iZOvSq5pk5D.OUoMIgLu4ro7yXnaUnDq854KL5HWCyviIV05n8W3NS+VUl+WHhEikbTnEwERTl59ZoOhXTKo6Lgzezx26XBjkQEqBUyVE9b5Pgu3J8EqF2I0fcQDkWOrprJ7ptB7Z89f2ZfjUIHUKCR2k55EIBMEVP77IzAJn4LgAK6kgRlujJyqR6pAOTliBXy48i.gqhv4wMadnM7yAG2nArzGareCKxdtRO19o1KiaJ2zUGDpUffy8Qi2G7uv89BIjuVPDo6bP+6MYB2CbN2zp9OIU4oBP7o18TSEJNFSluC09bzjCBIgRBFsmjn7LBsxVqvpi3JRKc7VBpCgzJS3Gz3WaXCOwuUX7lY6D.o5fTMY5wGOVL2t42dkL9jCxih4lmYLQhwIFtyRkHdNrDjO5k7X8yESmA3qbRFGwYyOd05z5lTmgZ8zSGsEU4A2jp3dQ+NaSQd3MoHmx784QOeC04xFWBsar4hoLuA2kIkiAB.mUZ6GbbosCmoM7WnbvNe8FW1v95llLYs1xSkjGsVyHqTzlBzQkDLlGUZeWpivQ0UO+u21c92K6fVIG0pAJg4Eg7b4MSfQxOoh7F4HDb0jxZreNqgqT.8.h.RxdTb4jjh8xT0jebvILCaYVfDBEIjGYD36h0I72.T4YbQ0omvimazgo9leLjX8QenZ9NhE052gRs.+ye.+If8tBLbm1vflPWwu.IgRacTSRfv2WxGoiEXGnDZaS92Lj.2r1OQxLqRXiSoxMf4nLKIxDpfbun7TrqyhW682Eat0CY1V3dW5Hj8Z83sxZvKzt9uFu4yD+LZFsdAXqQ6+Sab.Xss6.PAT9fCCyukx8nizxEgyzJgWFuSJfpSyIg1v0THj9Q7eNgq7JVE+s+r84k2BfTXEx1sOOgIu1pdGQnVxh1pNxteOfZa41lufd0Kk8sn85Xm41Cd+RZdS2FWru8f68om++.v9RchQnlNjA2W.mCbVRfKbQeON.TkhKiwQBUvoYYxMQYDPtbkepveCO4FagxV4FaszHLMwKR+ZurYf34mONUCfIU5mPTG9VFP1t0xoeTZyroLhW64gDZeUKBY8w7fcHlGtCw7ncHludGh4w6PLeyNDyS1XL3WS8rDiNHauInXTuzagXY0SwfcYoaSI+CfbgReb
-
-
@meto396 it's the same here I tried the snippet Compiled OK but nothing changes when I use the knob
-
@meto396 first this:
inline function onknobControl(component, value) { switch (mode)// <<== I think you mean "value" here { case 0: Filter1.setAttribute(Filter1.Mode, filterList.ResoHigh); break; case 1: Filter1.setAttribute(Filter1.Mode, filterList.MoogLP); break; case 2: Filter1.setAttribute(Filter1.Mode, filterList.SVFBP); break; case 3: Filter1.setAttribute(Filter1.Mode, filterList.LadderHP); break; } };
where did you pick up these attribute names from?
the only one I recognize is MoogLP, the other ones is not in the listI couldn't find the names in the docs so I searched the source code and found this:
ADD_FILTER_CONSTANT(LowPass); ADD_FILTER_CONSTANT(HighPass); ADD_FILTER_CONSTANT(LowShelf); ADD_FILTER_CONSTANT(HighShelf); ADD_FILTER_CONSTANT(Peak); ADD_FILTER_CONSTANT(ResoLow); ADD_FILTER_CONSTANT(StateVariableLP); ADD_FILTER_CONSTANT(StateVariableHP); ADD_FILTER_CONSTANT(MoogLP); ADD_FILTER_CONSTANT(OnePoleLowPass); ADD_FILTER_CONSTANT(OnePoleHighPass); ADD_FILTER_CONSTANT(StateVariablePeak); ADD_FILTER_CONSTANT(StateVariableNotch); ADD_FILTER_CONSTANT(StateVariableBandPass); ADD_FILTER_CONSTANT(Allpass);
Using them will make it work.
-
@ulrik Thank you this worked perfect!!!
-