A simple gain
[sim,out] = ld_gain(sim, events, in, gain)
in * - input
out * - output
out = in * gain