public override void ApplyToDsp(Dsp effect, time_t qnDur, float alpha = 0) { base.ApplyToDsp(effect, qnDur, alpha); if (effect is Wobble wobble) { wobble.SetPeriod(Period.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 Flanger flanger) { flanger.SetDelay(Delay.Sample(alpha)); flanger.SetDelayRange(Offset.Sample(alpha), Depth.Sample(alpha)); } }