Example #1
0
 public override void ApplyToDsp(Dsp effect, time_t qnDur, float alpha = 0)
 {
     base.ApplyToDsp(effect, qnDur, alpha);
     if (effect is BitCrusher bitCrusher)
     {
         bitCrusher.Reduction = Reduction.Sample(alpha);
     }
 }
Example #2
0
 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));
     }
 }