AKFrequencyTracker

open class AKFrequencyTracker : AKNode, AKToggleable, AKComponent, AKInput

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

  • Declaration

    Swift

    public typealias AKAudioUnitType = AKFrequencyTrackerAudioUnit
  • Four letter unique description of the node

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    @objc
    open dynamic var amplitude: Double { get }
  • Detected frequency

    Declaration

    Swift

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

    Declaration

    Swift

    @objc
    public init(
        _ input: AKNode? = nil,
        hopSize: Int = 4_096,
        peakCount: Int = 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()