AKStereoDelay

open class AKStereoDelay : AKNode, AKToggleable, AKComponent, AKInput

Stereo delay-line with stereo (linked dual mono) and ping-pong modes

  • 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>
  • Lower and upper bounds for Dry/wet mix

    Declaration

    Swift

    public static let dryWetMixRange: 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 default value for Dry/wet mix

    Declaration

    Swift

    public static let defaultDryWetMix: 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 }
  • Dry/wet mix. Should be a value between 0-1.

    Declaration

    Swift

    @objc
    open dynamic var dryWetMix: Double { get set }
  • Ping-pong mode: true or false (stereo mode)

    Declaration

    Swift

    @objc
    open dynamic var pingPong: Bool { 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,
        maximumDelayTime: Double = AKStereoDelay.timeRange.upperBound,
        time: Double = defaultTime,
        feedback: Double = defaultFeedback,
        dryWetMix: Double = defaultDryWetMix,
        pingPong: Bool = false
        )

    Parameters

    input

    Input node to process

    maximumDelayTime

    The maximum delay time, in seconds.

    time

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

    feedback

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

    dryWetMix

    Dry/wet mix. Should be a value between 0-1.

    pingPong

    true for ping-pong mode, false for stereo mode.

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

    Swift

    @objc
    open func clear()