Class AllPass

Record Components:
parent - PApplet: typically use "this"

public class AllPass extends Effect<FilterAllPass>
This is an all pass filter. For signals processed, all frequencies hold the same amplitude but have their phase relationship modified using a delayline of one sample,

y(k) = -z * x(k) + x(k - 1) + z * y(k - 1)

where y is the output, x is the input, z is the gain coefficient, and k is the signal.
  • Constructor Details

    • AllPass

      public AllPass(PApplet parent)
  • Method Details

    • gain

      public void gain(float g)
      Sets the gain for the filter in the range 0.0 - 1.0, where larger values increase phase displacement.
      Parameters:
      g - phase displacement in the range 0.0 - 1.0
    • process

      public void process(SoundObject input, float g)