AKToneFilter

open class AKToneFilter : AKNode, AKToggleable, AKComponent, AKInput

A first-order recursive low-pass filter with variable frequency response.

  • Lower and upper bounds for Half Power Point

    Declaration

    Swift

    public static let halfPowerPointRange: ClosedRange<Double>
  • Initial value for Half Power Point

    Declaration

    Swift

    public static let defaultHalfPowerPoint: Double
  • Ramp Duration represents the speed at which parameters are allowed to change

    Declaration

    Swift

    @objc
    open dynamic var rampDuration: Double { get set }
  • The response curve’s half-power point, in Hertz. Half power is defined as peak power / root 2.

    Declaration

    Swift

    @objc
    open dynamic var halfPowerPoint: Double { get set }
  • Tells whether the node is processing (ie. started, playing, or active)

    Declaration

    Swift

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

    Declaration

    Swift

    @objc
    public init(
        _ input: AKNode? = nil,
        halfPowerPoint: Double = defaultHalfPowerPoint
        )

    Parameters

    input

    Input node to process

    halfPowerPoint

    The response curve’s half-power point, in Hertz. Half power is defined as peak power / root 2.

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