SCRIPT WARNING invalid ui_slider value
Hello,
i try to make my first samplelibrary and everything works fine, but there is one problem. I want to controll some parameter with some sliders on my UI for the Freak effect. The sliders for the frequency and the mix parameter work great. But the sliders for Antifold, Harmonics, and Type doesn't do anything and i get the error message: SCRIPT WARNING invalide ui_slider value! Input value was clipped to minimum declared value!
I can't find out what went wrong. I tried to change the value for declare ui_slider to figure out what went wrong but nothing changes.
Has anyone an idea what i made wrong?
Here is the code i used for the sliders:
{on init}
on init
{Antifold}
declare ui_slider $antifreak (0,1000000)
$antifreak := 0
declare $antifreak_ID
$antifreak_ID := get_ui_id ($antifreak)
make_persistent ($antifreak) move_control_px ($antifreak,630,106)
set_control_par_str ($antifreak_ID, $CONTROL_PAR_PICTURE, "knopf")
set_control_par ($antifreak_ID, $CONTROL_PAR_MOUSE_BEHAVIOUR,-1000)
{Type}
declare ui_slider $typefreak (0,1000000)
$typefreak := 0
declare $typefreak_ID
$typefreak_ID := get_ui_id ($typefreak)
make_persistent ($typefreak)
move_control_px ($typefreak,698,106)
set_control_par_str ($typefreak_ID, $CONTROL_PAR_PICTURE, "knopf")
set_control_par ($typefreak_ID, $CONTROL_PAR_MOUSE_BEHAVIOUR,-1000)
{Harmonics}
declare ui_slider $harmf (0,1000000)
$harmf := 1
declare $harmf_ID
$harmf_ID := get_ui_id ($harmf)
make_persistent ($harmf)
move_control_px ($harmf,562,214)
set_control_par_str ($harmf_ID, $CONTROL_PAR_PICTURE, "knopf")
set_control_par ($harmf_ID, $CONTROL_PAR_MOUSE_BEHAVIOUR,-1000) {on UI_control}
{Antifold}
on ui_control($antifreak)
set_engine_par($ENGINE_PAR_FREAK_ANTIFOLD, $antifreak, -1, 3, 0)
end on
{Type}
on ui_control($typefreak)
set_engine_par($ENGINE_PAR_FREAK_TYPE, $typefreak, -1, 3, 0)
end on
{Harmonics}
on ui_control($harmf)
set_engine_par($ENGINE_PAR_FREAK_HARMONICS, $harmf, -1, 3, 0)
end on
If anybody can help me with this issue would be awesome
Comments
-
I got a different error with your code. You forgot the 'end on' for the init callback.
After adding it, there were no errors.0 -
Another error that the KSP editor can't detect: your "Freak" effect is configured as if it were inserted in the Send Effects stage of Kontakt.
However, it cannot appear there.I see it best in the Insert Effects stage.In this case, simply replace an attribution digit at the end of the line.
For example :
set_engine_par($ENGINE_PAR_FREAK_ANTIFOLD, $antifreak, -1, 3, 1) instead of set_engine_par($ENGINE_PAR_FREAK_ANTIFOLD, $antifreak, -1, 3, 0)
It's just the last number to change otherwise you won't be able to control the Freak effect.
0 -
Thanks guys for your help.
@corbo-billy thank you so much. I changed the last number and now everthing is working now.
0
Categories
- All Categories
- 19 Welcome
- 1.4K Hangout
- 60 NI News
- 762 Tech Talks
- 4K Native Access
- 16.3K Komplete
- 2K Komplete General
- 4.3K Komplete Kontrol
- 5.6K Kontakt
- 1.6K Reaktor
- 374 Battery 4
- 831 Guitar Rig & FX
- 424 Massive X & Synths
- 1.2K Other Software & Hardware
- 5.6K Maschine
- 7.1K Traktor
- 7.1K Traktor Software & Hardware
- Check out everything you can do
- Create an account
- See member benefits
- Answer questions
- Ask the community
- See product news
- Connect with creators