One Knob, two parameters?



  • umm... you declare a knob and link it to the two parameters in the onControl callback



  • Yes, I understand. But since I compile the latest Hise with GitHub I no longer use the OnControl...

    // const var Time = Content.addKnob("Time", 883, 735);
    // [JSON Time]
    Content.setPropertiesFromJSON("Time", {
      "width": 62,
      "height": 60,
      "min": 50,
      "max": 500,
      "processorId": "MasterDelay",
      "parameterId": "DelayTimeLeft",
      "filmstripImage": "{PROJECT_FOLDER}MO100.png",
      "numStrips": "101"
    });
    


  • But since I compile the latest Hise with GitHub I no longer use the OnControl...
    

    Why?



  • Without giving answer to général question, just to say i'm like Alexaudio => the interface popup menu is really complete and powerful. So for now using it to link knobs, sliders, labels, etc. ... is very quick and easy.

    but for some functions (not implemented in this popup menu) we must work with On"..." scripts.

    @d.healey = i saw you made some tutorials videos. Maybe creating some vids explaining/ showing some useful scripts/codes we can use with OnControl. it would be really nice 😉

    Thanks.


  • administrators

    Yes, that's true. As long as you only control one parameter of a module with the exact value that the component spits out, you can use the new processorId and parameterId processors. As soon as you want something more complex, you either have to add a custom control callback, or use the onControl callback, but this is not rocket science.

    This is an explanation of how to do this:

    http://forum.hise.audio/topic/74/how-to-control-modules-with-scripts



  • Hello,

    This is exactly the kind of articule I was looking for. Thank you

    To answer the other question, I no longer use OnControl from the thread on the forum "the value on the label", or I understood, that Oncontrol posed problems as soon as we had parameters a little less basic. As well as using Script right now, anyway it works as well. Correct me if I'm wrong.



  • Hello,

    Someone can give me some tracks on how to put a knob on the delay time. Instead of having two knob for right and left.

    I admit that I do not find how.

    Thank you



  • Oh, I'm with the new version, if it can change some things (1.5.0)


  • administrators

    HiseSnippet 1026.3ocuV0raaaDDdor2jZkpflf9.P3Sx.oBR1ooEHHvzVJpUv+DgHGidKXE4PqEZ4trjKsqRP.xwdqm6o9pzWgh7BzGg9Dz1YWRIRUK3ZUfFBHAMyryLe6re6m3vDkOjlpRHN26rYw.w4SoilI0S5NgwkjA8HN2mdBKUCIt4tNbVLKMEBHNNa7MFGNasIw97G6eHSvj9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PE9DqGbeKsuD0V3ayg1tKTPMyCTTh+ZeeC87KPp8pyX20Ni8V6Ld7ZmwWt1Y7j0NiuZsy3qugLLuz2AYZUTtXEg72vzlQxm
    


  • Great, that's exactly what I wanted. Sometimes having an example is the best way to learn.

    P.S. Did you receive my messages? I have not received any complaints? (I am sending you on the email box)


Log in to reply
 

2
Online

276
Users

737
Topics

4.8k
Posts

Looks like your connection to Forum was lost, please wait while we try to reconnect.