AKDelay

open class AKDelay: AKNode, AKToggleable

AudioKit version of Apple’s Delay Audio Unit

  • Delay time in seconds (Default: 1)

    Declaration

    Swift

    open dynamic var time: TimeInterval = 1
  • Feedback (Normalized Value) ranges from 0 to 1 (Default: 0.5)

    Declaration

    Swift

    open dynamic var feedback: Double = 0.5
  • Low pass cut-off frequency in Hertz (Default: 15000)

    Declaration

    Swift

    open dynamic var lowPassCutoff: Double = 15_000.00
  • Dry/Wet Mix (Normalized Value) ranges from 0 to 1 (Default: 0.5)

    Declaration

    Swift

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

    Declaration

    Swift

    open dynamic var isStarted = true
  • Initialize the delay node

    • Parameters:
      • input: Input audio AKNode to process
      • time: Delay time in seconds (Default: 1)
      • feedback: Amount of feedback, ranges from 0 to 1 (Default: 0.5)
      • lowPassCutoff: Low-pass cutoff frequency in Hz (Default 15000)
      • dryWetMix: Amount of unprocessed (dry) to delayed (wet) audio, ranges from 0 to 1 (Default: 0.5)

    Declaration

    Swift

    public init(
            _ input: AKNode?,
            time: Double = 1,
            feedback: Double = 0.5,
            lowPassCutoff: Double = 15_000,
            dryWetMix: Double = 0.5)

    Parameters

    input

    Input audio AKNode to process

    time

    Delay time in seconds (Default: 1)

    feedback

    Amount of feedback, ranges from 0 to 1 (Default: 0.5)

    lowPassCutoff

    Low-pass cutoff frequency in Hz (Default 15000)

    dryWetMix

    Amount of unprocessed (dry) to delayed (wet) audio, ranges from 0 to 1 (Default: 0.5)

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