AKTremolo

open class AKTremolo: AKNode, AKToggleable, AKComponent

Table-lookup tremolo with linear interpolation

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

    Declaration

    Swift

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

    Declaration

    Swift

    open dynamic var frequency: Double = 10
  • Depth

    Declaration

    Swift

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

    Declaration

    Swift

    open dynamic var isStarted: Bool
  • Initialize this tremolo node

    • Parameters:
      • input: Input node to process
      • frequency: Frequency (Hz)
      • depth: Depth
      • waveform: Shape of the tremolo (default to sine)

    Declaration

    Swift

    public init(
            _ input: AKNode?,
            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

    open dynamic func start()
  • Function to stop or bypass the node, both are equivalent

    Declaration

    Swift

    open func stop()