AKFrequencyTracker

open class AKFrequencyTracker: AKNode, AKToggleable, AKComponent

This is based on an algorithm originally created by Miller Puckette.

  • Tells whether the node is processing (ie. started, playing, or active)

    Declaration

    Swift

    open var isStarted: Bool
  • Detected Amplitude (Use AKAmplitude tracker if you don’t need frequency)

    Declaration

    Swift

    open var amplitude: Double
  • Detected frequency

    Declaration

    Swift

    open var frequency: Double
  • Initialize this Pitch-tracker node

    Declaration

    Swift

    public init(
            _ input: AKNode,
            hopSize: Double = 512,
            peakCount: Double = 20)

    Parameters

    input

    Input node to process

    hopSize

    Hop size.

    peakCount

    Number of peaks.

  • Function to start, play, or activate the node, all do the same thing

    Declaration

    Swift

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

    Declaration

    Swift

    open func stop()