What's new

Problem in set_engine_par Group Insert FX

marcosarantesj

New Member
I put in Group Insert FX - EQ 3, par L/H, in SendEffects - Reverb and put Send Levels in SendEffects. I have many groups and working reverb for each individual groups but I am wrong in KSP Script code.

In KSP Script I put this but dont working. I must be missing out on the index in script.

on ui_control($reverb) set_engine_par($ENGINE_PAR_SEND_EFFECT_OUTPUT_GAIN,$reverb,$group1,0,-1)
end on

 
OP
M

marcosarantesj

New Member
You should probably bypass the reverb itself, so that would be -1, 0, 0 for the last three arguments.
The code below working BYPASS. Thank you, :):).
if($btnFX = 1)
{Reverb}
set_engine_par($ENGINE_PAR_EFFECT_BYPASS, 1, $g1, 7, -1)
else
set_engine_par($ENGINE_PAR_EFFECT_BYPASS, 0, $g1, 7, -1)
end if

Happy new year from here in Brazil.:2thumbs:
 

EvilDragon

KSP Wizard
The code below working BYPASS.
There's no need to use if-else, it can be done in one line. Also, this is not bypassing the reverb, as I suggested - it's bypassing the send levels module, which doesn't save you much CPU... Here's how to bypass the reverb in send FX:

set_engine_par($ENGINE_PAR_SEND_EFFECT_BYPASS, 1 - $btnFX, -1, 0, 0)
 
Top Bottom