示例#1
0
 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);
     }
 }
示例#2
0
 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;
     }
 }