AKTremolo

open class AKTremolo: AKNode, AKToggleable, AKComponent, AKInput

Table-lookup tremolo with linear interpolation

  • Four letter unique description of the node

    Declaration

    Swift

    public static let ComponentDescription = AudioComponentDescription(effect: "trem")
  • Ramp Time represents the speed at which parameters are allowed to change

    Declaration

    Swift

    @objc open dynamic var rampTime: Double = AKSettings.rampTime
  • Frequency (Hz)

    Declaration

    Swift

    @objc open dynamic var frequency: Double = 10
  • Depth

    Declaration

    Swift

    @objc open dynamic var depth: Double = 1
  • Tells whether the node is processing (ie. started, playing, or active)

    Declaration

    Swift

    @objc open dynamic var isStarted: Bool
  • Initialize this tremolo node

    Declaration

    Swift

    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 dynamic func start()
  • Function to stop or bypass the node, both are equivalent

    Declaration

    Swift

    @objc open func stop()