Linking two 2 knobs to control same Module
-
@Sawer Might find what you're looking for in this video
-
@d-healey Will check out thanks so much
-
@DanH Uhm..Will check now
-
@d-healey Can
fx.setAttribute();
get 2 parameter inside? or is there a function that can set values with a knob of 2 or more parameters in one instance? I've watched your video but it is relating only to 1 Parameter ("Gain" ) in three different fx modules, but how can I link two knobs changing two parameters of the same fx module? Thanks -
how can I link two knobs changing two parameters of the same fx module?
It's exactly the same, just instead of using 2 different effects use the same effect but change the attribute constant. For example a simple gain:
SimpleGain1.setAttribute(SimpleGain1.Gain, -18.0); SimpleGain1.setAttribute(SimpleGain1.Balance, 0.5);
-
HiseSnippet 1166.3ocyW80iZaDDeMfuDHsQMQsuacOQTRo.20jJQiNmCNZQ4tKnvknHcJJcwdMrh065ZuNIz1SJO125mo9XeNeA5Gg9Insyt1b1bGvQPsUEAHO+c+MytyLq6GJbHQQhPjQ4SlFPPFej4fob431iwTNpWGjwMMOBGIIgVIr1eZ.NJh3hLLJ9MJFFkKgze9i81GyvbGRFKD54BpC4PpOUlwsu8ioLVWrK4DpeNs20tmif2VvDw.dJZVGEfclfGQNFqTqfIxXqCboRQ3.IVRh.c1W3NcvXwa3I5+bZDcHinHZfF.NJgMp8XJys+rXMBgLJ0OKxKlD4ep4QTW547yx.ehVfUlE4yAFEVEjZ7A.IibPpTBjtk4.mPZfLShBO2vrGG1P7vPpNOTRzEUHtnYaAnAWVyGOgzMDHN2hp2ud86YA+cmVUp.o6Ho0qwgVcHL7zFVOzRu6WaDQdfmGwQVc6DIaCpmo8i4hgJkmsLf5sE9ABNPTcaszKaPyUZPysmGP6GKkB9xWjT4WvpI7gfEm9xVUfmNs9KeXBTSHajR1DLoBkynbhkWL2QREbKAWqoZwBErpNyVo6A9kEStSkxk+Q3W4jzQsHh7QRYHcXrjTs9LkZAZbVqk47lK24fqWjiaj4XkaqrPbmlIVoy8DgUoPlodKKp0WqRS0XD9H4Xf9t2EBNUrAe04.EFR8VaLiMDJBqNe5QGn5PZ451Lmtmof+UrOtXOMevA9JWferPRdBupN.qbVEqKJxyagxR8EiDtPwpdRgqxvp7X+gjv7oWkhPQ67cB1Z85D3jjVxonf2iSkOIfjR2UvbUU3pmubeCTZdE5fTLEgvSRc+ial1+X.i5RBQTvIWyTuQhzfeVu228Y+pMZsMt4ELd3usbiS1+zFW1LcybdyUCNPOqWGrDqZBlFMPDFPBkTUhznC40vTjjVhkM6PhlHEA5vM8XDL15JC32hLLM10.glpd3Kf0MRNUscrkVAjO00kQ5KhnpsaE59y+B9r2uXCS+BFP+g4PrO9smS9yu2NJ1yipVASK+HjGk4GA0vA87goWHiaa9rHhkKwCGyjVQSf4JPQ7Dh6IB8XMegqFG5wgnOfnpIJCEV+j8zLD1y9++QWo03nRFN9tnbw26N0Fc4wkvfZgaLCKme5s5ZJoBTwd9QlpwhbHmLMezewQ5kVdgb8bExWQY5ZB2aY1mJcFuX7VXA3EJZ92FuoWP5iMStSPFXKY18Eq71PkVudfYP4JuYzMRvx0L0yK0n35IO2XNjnYoNxcHwSluO24BdJczXY9lXcIDW0XmbVXuyNueuY7yafVvgh2zGVvtgjuOe4x2RuDWTG6inYmkQ+9dmPf5.3xVNysSV7enKShdpHVR4iNBCEppJ2ii8G.Wq1g.adbNgEoZBVPM8HgtthVAgADtqlP0dHUXCEsQpvFyD9exZ3icBEuxIY5h5rv00bf3lqeofxvam.zVmOTwzrds5p1czW43nNg94vo6EaSyMvlc1.a1cCr4K2.at+FXyC1.a9pUZi5ckdTrT3mz8BXz+.8vcCiC3X3zqt7D827bXGnK
Ok tried this implementation, the code is not working. I'm just wondering what's missing?
-
@Sawer said in Linking two 2 knobs to control same Module:
Ok tried this implementation, the code is not working. I'm just wondering what's missing?
In your button callback you are just setting the value of the Delay attributes, this callback is only triggered when the button is clicked not when the knobs are moved.
-
@Sawer if I understand what you mean,
if button is on, you should be able to control both Left and Right Delay time with any of the knobs?like this?
In both knobs callbacks, check if the button.getValue()
something like this
inline function onKnob2Control(component, value) { Delay1.setAttribute(1, value); if (Button1.getValue()) { Knob1.setValue(value); Knob1.changed(); } };
and apply it to both callbacks
-
@ulrik Oh and by the way, it's recommended to use the attribute names instead of numbers.
You find them in Hise here:I always have a floating window open for the "Module Browser"
so the changed code would be
inline function onKnob2Control(component, value) { Delay1.setAttribute(Delay1.DelayTimeRight, value); if (Button1.getValue()) { Knob1.setValue(value); Knob1.changed(); } };
-
@ulrik Thanks so much man! Super clear explanation!
-
-