When I use custom knob in user linked to portamento glide knob i got some problems

Loca Life
Loca Life Member Posts: 4 Newcomer
edited April 2022 in Scripting Workshop

hi guys, first sorry for my english.

i got some problems. i created one librairy for kontakt and all its ok

i linked portamento with my user script and no problem for that all worked but when i used custom knob in user (and i think i got good script for that) now my custom knob and portamento knob work good but the glide don't change in listening.

i don t know if its clear for you ?

all its ok my two knob ( custom in user and time in portamento ) work together in same value but i don t know why nothing change in real time in audio.

and if i do it with classic knob it work

someone can help me please

Best Answer

  • Loca Life
    Loca Life Member Posts: 4 Newcomer
    edited April 2022 Answer ✓

    i think i found it maybe can help others

    juste need to copy and paste all in ui control to pgs change settings

Answers

  • Loca Life
    Loca Life Member Posts: 4 Newcomer
    edited April 2022

    if can help my script here :

    on init
      declare ui_slider $porta_combi_knob(0, 127) {Glide}
    declare $porta_combi_knobId
      $porta_combi_knobId := get_ui_id($porta_combi_knob)
      set_control_par_str($porta_combi_knobId,$CONTROL_PAR_PICTURE,"Button")
      set_control_par($porta_combi_knobId,$CONTROL_PAR_MOUSE_BEHAVIOUR,-500)
      set_control_par(get_ui_id($porta_combi_knob), $CONTROL_PAR_POS_X, 20)
      set_control_par(get_ui_id($porta_combi_knob), $CONTROL_PAR_POS_Y, 198)
      make_persistent($porta_combi_knob)
      pgs_create_key(TME, 1)
    end on
    on ui_control($porta_combi_knob)
        pgs_set_key_val(TME, 0, $porta_combi_knob)   
    end on
    

    and in portamento script :

    on pgs_changed if (pgs_key_exists(TME) and pgs_get_key_val(TME, 0) # $porta_combi_knob)
        $porta_combi_knob := pgs_get_key_val(TME, 0)
      end if
     end on
    


  • Loca Life
    Loca Life Member Posts: 4 Newcomer
    edited April 2022 Answer ✓

    i think i found it maybe can help others

    juste need to copy and paste all in ui control to pgs change settings

  • EvilDragon
    EvilDragon Moderator Posts: 1,022 mod

    Please use the code block option in the forum, as explained in this post.

  • Loca Life
    Loca Life Member Posts: 4 Newcomer

    ok evil dragon thx

Back To Top