AKVariableDelay

open class AKVariableDelay : AKNode, AKToggleable, AKComponent, AKInput

A delay line with cubic interpolation.

  • Lower and upper bounds for Time

    Declaration

    Swift

    public static let timeRange: ClosedRange<Double>
  • Lower and upper bounds for Feedback

    Declaration

    Swift

    public static let feedbackRange: ClosedRange<Double>
  • Initial value for Time

    Declaration

    Swift

    public static let defaultTime: Double
  • Initial value for Feedback

    Declaration

    Swift

    public static let defaultFeedback: Double
  • Initial value for Maximum Delay Time

    Declaration

    Swift

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

    Declaration

    Swift

    @objc
    open dynamic var rampDuration: Double { get set }
  • Delay time (in seconds) This value must not exceed the maximum delay time.

    Declaration

    Swift

    @objc
    open dynamic var time: Double { get set }
  • Feedback amount. Should be a value between 0-1.

    Declaration

    Swift

    @objc
    open dynamic var feedback: 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 delay node

    Declaration

    Swift

    @objc
    public init(
        _ input: AKNode? = nil,
        time: Double = defaultTime,
        feedback: Double = defaultFeedback,
        maximumDelayTime: Double = defaultMaximumDelayTime
        )

    Parameters

    input

    Input node to process

    time

    Delay time (in seconds) This value must not exceed the maximum delay time.

    feedback

    Feedback amount. Should be a value between 0-1.

    maximumDelayTime

    The maximum delay time, in seconds.

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