Hi,
I am trying to make a "Slow Mute" essentially. What I mean is, when I press the Mute Button it slowly sets the volume of the Inverter in slot 0 of Group 0 go to zero dB. The inverse should happen to fade the volume back up too.
The script below works correctly in setting the volume levels of the effect but the fade part seems to be doing nothing at all.
Can someone help please? Thanks a lot!
on ui_control ($Grp_1_Mute)
if ($Grp_1_Mute = 0)
$Grp_1_Inverter_Volume := get_engine_par($ENGINE_PAR_INSERT_EFFECT_OUTPUT_GAIN, 0, 0, -1)
set_engine_par($ENGINE_PAR_INSERT_EFFECT_OUTPUT_GAIN, 0, 0, 0, -1)
fade_out($Grp_1_Inverter_Volume, 4000000, 0)
else
set_engine_par($ENGINE_PAR_INSERT_EFFECT_OUTPUT_GAIN, 397500, 0, 0, -1)
fade_in($Grp_1_Inverter_Volume, 4000000)
end if
end on