AKBitCrusher

open class AKBitCrusher: AKNode, AKToggleable, AKComponent

This will digitally degrade a signal.

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

    Declaration

    Swift

    open var rampTime: Double = AKSettings.rampTime
  • The bit depth of signal output. Typically in range (1-24). Non-integer values are OK.

    Declaration

    Swift

    open var bitDepth: Double = 8
  • The sample rate of signal output.

    Declaration

    Swift

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

    Declaration

    Swift

    open var isStarted: Bool
  • Initialize this bitcrusher node

    • Parameters:
      • input: Input node to process
      • bitDepth: The bit depth of signal output. Typically in range (1-24). Non-integer values are OK.
      • sampleRate: The sample rate of signal output.

    Declaration

    Swift

    public init(
            _ input: AKNode,
            bitDepth: Double = 8,
            sampleRate: Double = 10000)

    Parameters

    input

    Input node to process

    bitDepth

    The bit depth of signal output. Typically in range (1-24). Non-integer values are OK.

    sampleRate

    The sample rate of signal output.

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