Bouton control bouton



  • Hello, I would like to create a button which manages several parameters. I am encountering a problem, if I put a button on frequency I can control eq, filter but I can not control a parameter which is in percentage. I tried to create a button by parameters and a main button to link them together with knob1.setvalue (value); . the buttons move but do not activate the parameters. some help? 🙂



  • @yall

    local perc = (value - component.get("min"))/((component.get("max") - component.get("min"))/100);
    
    


  • @Lindon
    I don't understand where I should put this line and what it corresponds to. my konb 1 goes from 0 to 100 and my knob2 from 20 to 20,000.



  • @yall so you want to use one knob to control two parameters:

    your knob goes from 20 to 20000 (so its all set up for frequency
    but you also want to control a percentage somewhere

    inline function myKnobControl(component, value)
    {
         local perc = (value - component.get("min"))/((component.get("max") - component.get("min"))/100);
         myFX.setAttribute(myFX.frequency, value);
         myFX.setAttribute(myFX.percentage,perc);
    
    }
    

    So what we are doing here is working out what 1% is as a value and dividing this into the range returned..

    So we are scaling our returned value to the range 0-100, you can scale to other ranges too as required.



  • @Lindon said in Bouton control bouton:

    myFX.setAttribute(myFX.frequency, value);
    myFX.setAttribute(myFX.percentage,perc);

    it is beyond my skills ^^



  • @yall - its going to be hard to give you more of the answer without doing it for you.


Log in to reply
 

18
Online

807
Users

3.0k
Topics

25.5k
Posts