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