AKLowPassButterworthFilter

open class AKLowPassButterworthFilter: AKNode, AKToggleable, AKComponent, AKInput

These filters are Butterworth second-order IIR filters. They offer an almost flat passband and very good precision and stopband attenuation.

  • Four letter unique description of the node

    Declaration

    Swift

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

    Declaration

    Swift

    @objc open dynamic var rampTime: Double = AKSettings.rampTime
  • Cutoff frequency. (in Hertz)

    Declaration

    Swift

    @objc open dynamic var cutoffFrequency: Double = 1_000.0
  • Tells whether the node is processing (ie. started, playing, or active)

    Declaration

    Swift

    @objc open dynamic var isStarted: Bool
  • Initialize this filter node

    Declaration

    Swift

    public init(
            _ input: AKNode? = nil,
            cutoffFrequency: Double = 1_000.0)

    Parameters

    input

    Input node to process

    cutoffFrequency

    Cutoff frequency. (in Hertz)

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

    Declaration

    Swift

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

    Declaration

    Swift

    @objc open func stop()