AKBitCrusher

open class AKBitCrusher: AKNode, AKToggleable, AKComponent, AKInput

This will digitally degrade a signal.

  • Four letter unique description of the node

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public init(
            _ input: AKNode? = nil,
            bitDepth: Double = 8,
            sampleRate: Double = 10_000)

    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

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

    Declaration

    Swift

    @objc open func stop()