AKFrequencyTracker

open class AKFrequencyTracker: AKNode, AKToggleable, AKComponent, AKInput

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

  • Four letter unique description of the node

    Declaration

    Swift

    public static let ComponentDescription = AudioComponentDescription(effect: "ptrk")
  • Tells whether the node is processing (ie. started, playing, or active)

    Declaration

    Swift

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

    Declaration

    Swift

    @objc open dynamic var amplitude: Double
  • Detected frequency

    Declaration

    Swift

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

    Declaration

    Swift

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

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

    Declaration

    Swift

    @objc open func stop()