AKEqualizerFilter

open class AKEqualizerFilter: AKNode, AKToggleable, AKComponent

A 2nd order tunable equalization filter that provides a peak/notch filter for building parametric/graphic equalizers. With gain above 1, there will be a peak at the center frequency with a width dependent on bandwidth. If gain is less than 1, a notch is formed around the center frequency.

  • Ramp Time represents the speed at which parameters are allowed to change

    Declaration

    Swift

    open dynamic var rampTime: Double = AKSettings.rampTime
  • Center frequency. (in Hertz)

    Declaration

    Swift

    open dynamic var centerFrequency: Double = 1_000.0
  • The peak/notch bandwidth in Hertz

    Declaration

    Swift

    open dynamic var bandwidth: Double = 100.0
  • The peak/notch gain

    Declaration

    Swift

    open dynamic var gain: Double = 10.0
  • Tells whether the node is processing (ie. started, playing, or active)

    Declaration

    Swift

    open dynamic var isStarted: Bool
  • Initialize this filter node

    • Parameters:
      • input: Input node to process
      • centerFrequency: Center frequency in Hertz
      • bandwidth: The peak/notch bandwidth in Hertz
      • gain: The peak/notch gain

    Declaration

    Swift

    public init(
            _ input: AKNode?,
            centerFrequency: Double = 1_000.0,
            bandwidth: Double = 100.0,
            gain: Double = 10.0)

    Parameters

    input

    Input node to process

    centerFrequency

    Center frequency in Hertz

    bandwidth

    The peak/notch bandwidth in Hertz

    gain

    The peak/notch gain

  • Function to start, play, or activate the node, all do the same thing

    Declaration

    Swift

    open func start()
  • Function to stop or bypass the node, both are equivalent

    Declaration

    Swift

    open func stop()