Home Forums Pianobook Kontakt knob script issue

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4016
    Liam MacLean
    Participant

    Hello!

    I was wondering if anyone could help me fix a small issue. I have limited knowledge of Kontakt scripting, but the instrument has gone really well so far.

    I have 5 knobs, all of them working vertically, however, my highpass knob is working horizontally. Does anyone know how I can tell Kontakt which direction to go so all knobs work the same?

    I’m sure it’s a simple fix and I’m missing something obvious. I’m sure that is all self explanatory but here’s a screen capture anyway

    Cheers!

    #4017
    bo din
    Participant

    If you want to add an image or other file to your post, you can use a dropbox link.

    #4018
    Liam MacLean
    Participant

    Sorry didn’t realise that the link didn’t attach. Here is a screenshot of the script and the screen recording

    https://drive.google.com/drive/folders/1aRyroBkpGjGrPvh6koZgo5dh2oOSUr8t?usp=sharing

    #4027
    Angus
    Participant

    Try changing the number after PAR_MOUSE_BEHAVIOUR to 1000 instead of -1000. That should change the direction.

    #4037
    Liam MacLean
    Participant

    Thanks for replying! I tried that but it didn’t work. It’s the only thing I knew to try. I’ll try again tomorrow.

    What’s really confusing me is that the $hpcutoff details were copied and pasted from $cutoff, but they’re responding differently.

    #4038
    Angus
    Participant

    Are you able to post the script segment here?

    #4039
    Liam MacLean
    Participant

    on init

    make_perfview

    set_ui_height_px(280)
    set_ui_width_px(633)
    message(“”)

    declare $count := 0

    set_control_par_str($INST_ICON_ID,$CONTROL_PAR_PICTURE,”rsz_lm_logo”)

    declare ui_slider $cutoff(500000, 1000000)
    make_persistent($cutoff)
    declare $cutoffId
    $cutoffId := get_ui_id($cutoff)
    set_control_par_str($cutoffId, $CONTROL_PAR_PICTURE, “LM_Knob2”)
    set_control_par($cutoffId,$CONTROL_PAR_MOUSE_BEHAVIOUR,-1000)

    declare ui_slider $hpcutoff(1, 500000)
    make_persistent($hpcutoff)
    declare $hpcutoffId
    $cutoffId := get_ui_id($hpcutoff)
    set_control_par_str($hpcutoffId, $CONTROL_PAR_PICTURE, “LM_Knob2”)
    set_control_par($hpcutoffId,$CONTROL_PAR_MOUSE_BEHAVIOUR,-1000)

    declare ui_slider $Reverb(1,750000)
    make_persistent($Reverb)
    declare $ReverbId
    $ReverbId := get_ui_id($Reverb)
    set_control_par_str($ReverbId, $CONTROL_PAR_PICTURE, “LM_Knob2”)
    set_control_par($ReverbId,$CONTROL_PAR_MOUSE_BEHAVIOUR,-500)

    declare ui_slider $attack (50000, 1000000)
    declare ui_slider $release (50000, 1000000)

    make_persistent($attack)
    make_persistent($release)

    declare $attackId
    declare $releaseId

    $attackId := get_ui_id($attack)
    $releaseId := get_ui_id($release)

    set_control_par_str($attackId, $CONTROL_PAR_PICTURE, “LM_Knob2”)
    set_control_par_str($releaseId, $CONTROL_PAR_PICTURE, “LM_Knob2”)
    set_control_par_str($cutoffId, $CONTROL_PAR_PICTURE, “LM_Knob2”)
    set_control_par_str($hpcutoffId, $CONTROL_PAR_PICTURE, “LM_Knob2”)

    set_control_par($attackId,$CONTROL_PAR_MOUSE_BEHAVIOUR,-500)
    set_control_par($releaseId,$CONTROL_PAR_MOUSE_BEHAVIOUR,-500)

    move_control_px($Reverb,545,205)
    move_control_px($attack,295,205)
    move_control_px($release,425,205)
    move_control_px($cutoff,545,115)
    move_control_px($hpcutoff,425,115)

    end on

    #4040
    Liam MacLean
    Participant

    Fixed it.. How idea how. deleted the script for that knob and started from scratch

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.