public override void ApplyToDsp(Dsp effect, time_t qnDur, float alpha = 0) { base.ApplyToDsp(effect, qnDur, alpha); if (effect is Gate gate) { gate.SetGating(Gating.Sample(alpha)); gate.SetGateDuration(GateDuration.Sample(alpha) * qnDur.Seconds * 4); } }
public override void ApplyToDsp(Dsp effect, time_t qnDur, float alpha = 0) { base.ApplyToDsp(effect, qnDur, alpha); if (effect is Retrigger retrigger) { retrigger.Mix = Mix.Sample(alpha); retrigger.Gating = Gating.Sample(alpha); retrigger.Duration = GateDuration.Sample(alpha) * qnDur.Seconds * 4; } }