AKDecimator

open class AKDecimator: AKNode, AKToggleable, AUEffect

AudioKit version of Apple’s Decimator from the Distortion Audio Unit

  • Undocumented

    Declaration

    Swift

    open class AKDecimator: AKNode, AKToggleable, AUEffect
  • Decimation (Normalized Value) ranges from 0 to 1 (Default: 0.5)

    Declaration

    Swift

    open dynamic var decimation: Double = 0.5
  • Rounding (Normalized Value) ranges from 0 to 1 (Default: 0)

    Declaration

    Swift

    open dynamic var rounding: Double = 0
  • mix

    Mix (Normalized Value) ranges from 0 to 1 (Default: 1)

    Declaration

    Swift

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

    Declaration

    Swift

    open dynamic var isStarted = true
  • Initialize the decimator node

    • Parameters:
      • input: Input node to process
      • decimation: Decimation (Normalized Value) ranges from 0 to 1 (Default: 0.5)
      • rounding: Rounding (Normalized Value) ranges from 0 to 1 (Default: 0)
      • mix: Mix (Normalized Value) ranges from 0 to 1 (Default: 1)

    Declaration

    Swift

    public init(
            _ input: AKNode?,
            decimation: Double = 0.5,
            rounding: Double = 0,
            mix: Double = 1)

    Parameters

    input

    Input node to process

    decimation

    Decimation (Normalized Value) ranges from 0 to 1 (Default: 0.5)

    rounding

    Rounding (Normalized Value) ranges from 0 to 1 (Default: 0)

    mix

    Mix (Normalized Value) ranges from 0 to 1 (Default: 1)

  • 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()
  • Disconnect the node

    Declaration

    Swift

    override open func disconnect()