allabouttrailermusic
New Member
Hey guys,
I scripted some controls for the Convolution reverb. They all do work. However, displaying their current value to the user via get_engine_par_disp won't work in real time. One can clearly hear that in the background Kontakt needs some time to update the Convolution reverb before it can show the current value of the knobs.
That kinda sucks though. I'm fine with Kontakt taking a second for the new settings to apply, but when moving a slider the value should be displayed in real-time as it usually would via get_engine_par_disp. How do I fix that?
I scripted some controls for the Convolution reverb. They all do work. However, displaying their current value to the user via get_engine_par_disp won't work in real time. One can clearly hear that in the background Kontakt needs some time to update the Convolution reverb before it can show the current value of the knobs.
That kinda sucks though. I'm fine with Kontakt taking a second for the new settings to apply, but when moving a slider the value should be displayed in real-time as it usually would via get_engine_par_disp. How do I fix that?
Code:
on ui_control ($fx_ir_sli_predelay)
set_engine_par($ENGINE_PAR_IRC_PREDELAY, $fx_ir_sli_predelay, -1, 0, $NI_SEND_BUS)
{ show knob values }
%id[33] := $NI_CALLBACK_ID
set_control_par_str(get_ui_id($fx_ir_lbl_predelay), $CONTROL_PAR_TEXT, get_engine_par_disp($ENGINE_PAR_IRC_PREDELAY, -1, 0, $NI_SEND_BUS) & " ms")
wait($wait_time)
if(%id[33] = $NI_CALLBACK_ID)
set_control_par_str(get_ui_id($fx_ir_lbl_predelay), $CONTROL_PAR_TEXT, "PRE DELAY")
end if
end on