Link knobs function
-
@d-healey Yes, maybe I have not explained my problem in the correct way.
I would like them to stay locked, because now they do just if I continuously press the button.
It's a "stereo link" function what I'm looking for. -
You need to use the knobs' callback to do that.
-
@d-healey Ok, I will try but I find it difficult to include the condition that checks if the button is pressed. It's a silly problem I know..!
-
It's the same as your example.
if (button.getValue()) { //Do stuff here }
-
@d-healey Ok thanks a lot!
-
@d-healey Sorry to bother you mate... but it's still not clear to me
HiseSnippet 1144.3oc6XEraaaDDcojW2P05fjh9AP3Sx.oFRpIoEnnHpV1NPH0NpUotsmRVStxZgWtKA4R2nFXf9Ez6tm5g9Sza9SoeB8OnclkThTNxxxpnAwEg5B2Yl2NuY3vYVpdwZedRhNl339rQQbhyGP6ORYF1YHSnHc2l3ba5drDCO1KSzVihXII7.hiS0GiBbbWgXu9qGsESxT97BQDxAZgO+qDgBSgzdsehPJ2kEvelHrj02ucWespiVpSA9Tk1fDw7OlcDeeFZVEJwY0cBDFcbeCyvSHNqrkNXT+g5eTkY+AhDwgRNtnIoOrQYh2UKCPFiRIcFJjA8FG2IDXW5UjEplkE9H5dh.wD4EYi6XU3Ufnb9vox7nWyqldMlE8bJQuUxn2co88iEQlBMH2deZWE7fZ.CdDTlVY1RpDVk1QCVnLaFxNluaLrXBh5OrQi648fFM13yWqF9CdTjX7NgE68Dk9vldeg2XvGwMczgQZErn95VsqinlFQq4hn0EPrUpwnUWtWx0u9X1sVMgRJTbuAoJeiPq7zpbavMHVKq6OF88.OHS4arVsWsVMWo1mIQIfurbG8zAnA0wM2CtDC7pOFhqksalL1FPNZVtX+gL0Q7.KRWvwIZIeynXAP4LCJ1azjSsr+JhPzW4wPGlTdH7NP8KFbYogWOEXc5+tDfKF84dahFLQfXwrykjPPUWUFvyql6ofsyOSjWeL67fkwYhag9sTvuu1vepp9F0dUM2ZmVy6hpFLXl5x8gjGOS0XOp34ArtJM7Pd73j7XCgWVmtavpKV2.+rbRIC0ptJg4oQ770yucFIOoBcNplyP3Nisuwsy6azWJB3wDArIuG0ltIVxm2K92N6rMNmrvfadM.mUXYA6RyqxlBtcPB4a6tMyvvle4QCDgQ7Xi.SjNayOAlpj0JzktMO4XiNxFt40PvXrqLfe4DG9y9sGMYwKjsiFmM6FX2AQXjj6gC6ZASjhggQPOST2pT6DvPcPNQ7EGxkjvxSE+gyCYur7DQXVZTewOYi2e8L75OdTR5fABvJJ0KXK.ePfj2SmHvBsBrsvz5BGgMwHj576.vQ3M+BbykGYMeKJxVYAJYJb7elV5oG4qaSd8wkvPacPpjYldRNFh4JP1TdjINVTArbT4pxqw38FK7oOVT5dWZOgwe3r4akYvW3km+q4a9gkVityfAbeSAYWgt62+F3jQUJwkaM43q1h5GWb70opxujiudN1zZatjMUB76DAlgkJ3aOiC31UcBzWpmVxhuX5u5zwb0EKluhCnN+ZDLj7twTS+gTaJ+lDgskD2bH7cn8XuMTP7M5TiPczdLSrcZv9og8guxymCTUo3xDbBUE7vKYqafqQB0mqBrK9a3JWYSbsStxliURttMCZ8tlAuqYv6ZF7+ylAuI7QHyOV+b+ruzAe07VVIPbqr+gUtz8v0dS9.GJswlMvCAKdtuOdJoOFxOyFSqk.ymrDXt+Rf4AKAlGtDX9zk.ymMWL3+c2WlZzgY0+ffd6X+PSGmcTLnR19p.4e.lCvtfA
I've tried this but no to avail... the second knob updates only if I press the button
-
This won't work -
if (Button1.getValue)
With this block you are changing knob2 to match knob1 when you move knob2. I think you want knob2 to match knob1 when you move knob1.
inline function onKnob2Control(component, value) { local val = Knob1.getValue(); if (Button1.getValue()) { Knob2.setValue(val); Console.print(Knob2.getValue()); } };
-
@d-healey Yeah exactly... so it's a logic mistake on my part, damn! Thanks David, if I can't solve it I will come back! :)
-
@d-healey Last one for today, I promise!
Still not working... I can't really figure this out, I feel rather dumb!HiseSnippet 1151.3oc6XEsaaTDEcV6LgtFBpEwGvp7BNRkHaSaAIDpl3jTYURpAWBvSkw6NNdTlclU6NNTSUj3Mdi2COwC7Sva4CneD7Ive.buyt165fsiqQT0Hk0urybumYNm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qgyLUp.Wt0jCzZSpezXpbor74bv1KvhV6xkroBfeiHvLnPBeyYbz21pSg5RczRV7kC+kmVykWNMeEGccw4Hnj7t1jS+dTaH+5DgsoDWeH7socXuIjP7U5gFg53CXlXa2fCGF1E99OeNPUkhKSvNTkvCujNtFNFITWtJvN3ugqLi0wwNYFqO1H4UsXPi4VL.O9yMECtoXvMECt1VL30wdDx7i0OyO8KcvWMukcFP2J6ekkK8.br2jOvgRqscM7Pvhm46imR5Cg3yrwzXEv7Qq.l6sBXt+Jf4Aq.lOdEv7IKDC9u584CM5vz7eXhN6Y+PSGm8TLHS19p.4eTpM.yB
-
You can't use processor/parameter ID and a control callback, it's one or the other :)
-
@d-healey I see... so, any suggestions?
-
Yeah, remove the parameter/processor ID assignments then it should work.
-
@d-healey Great! Tomorrow I will try to script the knob connections to their respective scriptnode parameters.
Thank you Dave!