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
Kontakt Scripting Help
- KVRian
- 979 posts since 7 Jan, 2011 from UK
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.
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
- KVRist
- 393 posts since 12 May, 2010
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
- Wavesfactory.
https://www.wavesfactory.com
https://www.wavesfactory.com