AKTremolo

open class AKTremolo : AKNode, AKToggleable, AKComponent, AKInput

Table-lookup tremolo with linear interpolation

  • Ramp Duration represents the speed at which parameters are allowed to change

    Declaration

    Swift

    @objc
    open dynamic var rampDuration: Double { get set }
  • Frequency (Hz)

    Declaration

    Swift

    @objc
    open dynamic var frequency: Double { get set }
  • Depth

    Declaration

    Swift

    @objc
    open dynamic var depth: 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 tremolo node

    Declaration

    Swift

    @objc
    public init(
        _ input: AKNode? = nil,
        frequency: Double = 10,
        depth: Double = 1.0,
        waveform: AKTable = AKTable(.positiveSine)
    )

    Parameters

    input

    Input node to process

    frequency

    Frequency (Hz)

    depth

    Depth

    waveform

    Shape of the tremolo (default to sine)

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