Kontakt Scripting Help

Sampler and Sampling discussion (techniques, tips and tricks, etc.)
Post Reply New Topic
RELATED
PRODUCTS

Post

I have successfully created a slider to control the frequency of an LFO.
Is it possible to assign to the frequency a switch (instead of a slider) that when clicked move the LFo Frequency to a fixed position and when is to the "off" position move back to the default position?

If it's possible how can I do it?

Thanks a lot in advance for any help

Post

You need to create a switch and set up a if statement inside a ui_control callback to check the status of the switch and then mod the lfo depending upon the status of the switch.

I have sent a script to you.
Last edited by synthmagic on Thu Aug 11, 2016 5:05 pm, edited 2 times in total.
Synth Magic synths for Konatkt - ARP Quadra, Polymoog and many more. www.synthmagic.co.uk

Post

Code: Select all

on init
    declare ui_switch $my_switch
end on

on ui_control ($my_switch)
    if ($my_switch = 0)
        set_engine_par($ENGINE_PAR_INTMOD_FREQUENCY, 1000000, 0, 1, -1)
    else 
        set_engine_par($ENGINE_PAR_INTMOD_FREQUENCY, 100, 0, 1, -1)
    end if
end on

Post Reply

Return to “Samplers, Sampling & Sample Libraries”