AKPeakingParametricEqualizerFilter

open class AKPeakingParametricEqualizerFilter: AKNode, AKToggleable, AKComponent

This is an implementation of Zoelzer’s parametric equalizer filter.

  • Four letter unique description of the node

    Declaration

    Swift

    public static let ComponentDescription = AudioComponentDescription(effect: "peq0")
  • Ramp Time represents the speed at which parameters are allowed to change

    Declaration

    Swift

    open dynamic var rampTime: Double = AKSettings.rampTime
  • Center frequency.

    Declaration

    Swift

    open dynamic var centerFrequency: Double = 1_000
  • Amount at which the center frequency value shall be increased or decreased. A value of 1 is a flat response.

    Declaration

    Swift

    open dynamic var gain: Double = 1.0
  • q

    Q of the filter. sqrt(0.5) is no resonance.

    Declaration

    Swift

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

    Declaration

    Swift

    open dynamic var isStarted: Bool
  • Initialize this equalizer node

    • Parameters:
      • input: Input node to process
      • centerFrequency: Center frequency.
      • gain: Amount the center frequency value shall be increased or decreased. A value of 1 is a flat response.
      • q: Q of the filter. sqrt(0.5) is no resonance.

    Declaration

    Swift

    public init(
            _ input: AKNode?,
            centerFrequency: Double = 1_000,
            gain: Double = 1.0,
            q: Double = 0.707)

    Parameters

    input

    Input node to process

    centerFrequency

    Center frequency.

    gain

    Amount the center frequency value shall be increased or decreased. A value of 1 is a flat response.

    q

    Q of the filter. sqrt(0.5) is no resonance.

  • 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()