1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

Solved Connecting knobs

Discussion in 'Scripting Workshop' started by Andrew Finch, Oct 30, 2019.

  1. Andrew Finch

    Andrew Finch NI Product Owner

    Messages:
    44
    I have made some custom knobs and am now trying to connect them to the groups I have set up in Instrument InsertFx. In group 1 I have an eq I don't want to be effected but then I have the legacy reverb in group 2, distortion in 3 and chorus in 4. In terms of coding, this is where I have got up to:

    {Reverb Routing}
    on ui_control($reverb)
    set_engine_par($ENGINE_PAR_VOLUME, $reverb, x, x, x)
    end on
    {Speed Routing}
    on ui_control($speed)
    set_engine_par($ENGINE_PAR_VOLUME, $speed, x, x, x)
    end on
    {Distortion Routing}
    on ui_control($distortion)
    set_engine_par($ENGINE_PAR_VOLUME, $distortion, x, x, x)
    end on
    {Vibrato Routing}
    on ui_control($vibrato)
    set_engine_par($ENGINE_PAR_VOLUME, $vibrato, x, x, x)
    end on

    I have declared the sliders but I am now not sure what values to use to connect to each knob. For reverb I want to connect to the Size knob, for the distortion I want to control the drive knob and for the chorus I want to control the speed knob. Would be grateful for any help on how to achieve this!
     
  2. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    I assume instead of "group" you meant "slot", there are 8 slots in insert FX. Yes?

    KSP reference explains the arguments of set_engine_par() function pretty well, so take a look there.
     
  3. Andrew Finch

    Andrew Finch NI Product Owner

    Messages:
    44
    I am struggling to understand the ksp manual if I want to control the 2nd slot in the instrument effects would I use:

    {Reverb Routing}
    on ui_control($reverb)
    set_engine_par($ENGINE_PAR_VOLUME, $reverb, -1, 1, 1)
    end on

    If that is right how would I then control the size knob for the legacy reverb with my custom knob?
     
  4. corbo-billy

    corbo-billy NI Product Owner

    Messages:
    652
    Kontakt 6 KSP Reference_Manual, page 185 _

    Legacy.jpg
     
  5. Andrew Finch

    Andrew Finch NI Product Owner

    Messages:
    44
    That's great, have sorted those out! One last thing, how do I control the speed knob in time machine mode with my custom knob?
     
  6. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    It's also in KSP reference...
     
  7. corbo-billy

    corbo-billy NI Product Owner

    Messages:
    652