• Control polyphony number

    General Questions
    4
    0 Votes
    4 Posts
    1k Views
    Dark BoubouD

    And this one is better :D

    mainSampler.setAttribute(6, value ? 2 : 40); mainSampler.setAttribute(2, value ? 1 : 40);

    6: Amount
    2: Soft Limit

  • 0 Votes
    10 Posts
    2k Views
    Dark BoubouD

    Well yeah I opened it, it works but not when I insert it in my code, but I'm sure it's about onctrol.
    I have found another solution!

    Add knob, speed LFO knob. When you select 'not sync button' (position 1), the knob has range 0 to 50.
    Until here that's the same as before.
    But if I insert this condition:

    inline function onBUTTONControl(component, value) { KNOBHERTZ.set("visible", value); }; BUTTON.setControlCallback(onBUTTONControl);

    And then add a second knob, with value 0 to 1 for synchro, then add this similar line:

    inline function onBUTTONControl(component, value) { KNOBSYNC.set("visible", !value); //Inverse value of the other knob }; BUTTON.setControlCallback(onBUTTONControl);

    And then it switches btw the two knobs, but we don't see it! :D

    I go try it, I hope it works :P