Hi, I'm trying to produce a bypass switch to control the Envelope Bypass.
This is the code that I've been trying to use, but I think I have an error in there?
Any help would be appreciated.
{----Declaring Envelope Bypass Button----}
declare ui_button $Env_Byp
$Env_Byp := 1
declare $Env_Byp_ID
$Env_Byp_ID := get_ui_id ($Env_Byp)
set_text ($Env_Byp,"")
make_persistent ($Env_Byp)
read_persistent_var ($Env_Byp)
move_control_px ($Env_Byp,256,178)
set_control_par_str ($Env_Byp_ID,$CONTROL_PAR_PICTURE,"ds_bypass_button")
on ui_control ($Env_Byp)
if ($Env_Byp=1)
set_engine_par ($ENGINE_PAR_INTMOD_BYPASS,$Env_Byp,1,find_mod(0,"ENV_BYP"),-1)
else
set_engine_par ($ENGINE_PAR_INTMOD_BYPASS,$Env_Byp,0,find_mod(0,"ENV_BYP"),-1)
end if
end on