AKNodeFFTPlot

open class AKNodeFFTPlot: EZAudioPlot, EZAudioFFTDelegate

Plot the FFT output from any node in an signal processing graph

  • The node whose output to graph

    Declaration

    Swift

    open var node: AKNode?
  • Required coder-based initialization (for use with Interface Builder)

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)

    Parameters

    coder

    NSCoder

  • Initialize the plot with the output from a given node and optional plot size

    • Parameters:
      • input: AKNode from which to get the plot data
      • width: Width of the view
      • height: Height of the view

    Declaration

    Swift

    public init(_ input: AKNode, frame: CGRect, bufferSize: Int = 1024)

    Parameters

    input

    AKNode from which to get the plot data

    width

    Width of the view

    height

    Height of the view

  • Callback function for FFT data:

    • Parameters:
      • fft: EZAudioFFT Reference
      • updatedWithFFTData: A pointer to a c-style array of floats
      • bufferSize: Number of elements in the FFT Data array

    Declaration

    Swift

    open func fft(_ fft: EZAudioFFT!, updatedWithFFTData fftData: UnsafeMutablePointer<Float>, bufferSize: vDSP_Length)

    Parameters

    fft

    EZAudioFFT Reference

    updatedWithFFTData

    A pointer to a c-style array of floats

    bufferSize

    Number of elements in the FFT Data array