AKBitCrusher

open class AKBitCrusher : AKNode, AKToggleable, AKComponent, AKInput

This will digitally degrade a signal.

  • Lower and upper bounds for Bit Depth

    Declaration

    Swift

    public static let bitDepthRange: ClosedRange<Double>
  • Lower and upper bounds for Sample Rate

    Declaration

    Swift

    public static let sampleRateRange: ClosedRange<Double>
  • Initial value for Bit Depth

    Declaration

    Swift

    public static let defaultBitDepth: Double
  • Initial value for Sample Rate

    Declaration

    Swift

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

    Declaration

    Swift

    @objc
    open dynamic var rampDuration: Double { get set }
  • The bit depth of signal output. Typically in range (1-24). Non-integer values are OK.

    Declaration

    Swift

    @objc
    open dynamic var bitDepth: Double { get set }
  • The sample rate of signal output.

    Declaration

    Swift

    @objc
    open dynamic var sampleRate: 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 bitcrusher node

    Declaration

    Swift

    @objc
    public init(
        _ input: AKNode? = nil,
        bitDepth: Double = defaultBitDepth,
        sampleRate: Double = defaultSampleRate
        )

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