Can ADSR Knobs Automatically Change Per Group?

DaDrumBum1
DaDrumBum1 Member Posts: 8 Member
edited July 2022 in Kontakt

I have a set of basic ASDR knobs, and some key switches and ui buttons that change which group is being played. Everything works fine however, the ADSR values will just display for group 1. If I hit a keyswitch or button to only allow group two, the ADSR values don't change. Is there a way for them to automatically change based on which group is currently being played? My apologies I am super super new to coding.


 

Best Answer

  • EvilDragon
    EvilDragon Moderator Posts: 1,027 mod
    Answer ✓

    Yes, you can do that, you would set the value of each knob by using get_engine_par() command.

Answers

  • EvilDragon
    EvilDragon Moderator Posts: 1,027 mod
    Answer ✓

    Yes, you can do that, you would set the value of each knob by using get_engine_par() command.

  • DaDrumBum1
    DaDrumBum1 Member Posts: 8 Member

    OMG thank you so much for taking the time to answer! You have helped so many. Just by reading your responses to people in other older messages helped me learn.

    I haven't got it working correctly yet, but now that I know that's the code to use, I am sure I will figure it out eventually.

  • DaDrumBum1
    DaDrumBum1 Member Posts: 8 Member
    edited July 2022

    @EvilDragon I got it! Thank you! I ended up doing


    on ui_control ($ks1)
    $attack := get_engine_par($ENGINE_PAR_ATTACK,0,1,0)
    set_knob_label($attack,_get_engine_par_disp($ENGINE_PAR_ATTACK,0,1,0))
    

    Then changing the group number for each new ui_control switch I had set up already.

Back To Top