Track Frequency from Microphone using AudioKit
<p>Creating an Swift-iOS project that tracks audio frequency from the microphone. Currently using the AudioKit 3.0 framework. I have the following code working in the Xcode simulator but when I run it on a device it doesn't appear to be reading the microphone signal correctly.</p>

<pre><code>    // Prepare Microphone
    let mic = AKMicrophone()


    // Connect Microphone to High Pass Filter
    let mixer = AKMixer(mic)
    let highPassFilter = AKHighPassFilter(mic)

    // Set Parameters of Hi Pass filter
    highPassFilter.cutoffFrequency = 7000 // Hz
    highPassFilter.resonance = 0 // dB


    let tracker = AKFrequencyTracker(highPassFilter, minimumFrequency: 7000, maximumFrequency: 8000)
    highPassFilter.play()
    audioKit.audioOutput = tracker
    audioKit.start()

    AKPlaygroundLoop(every: 0.1) {
        let freq = tracker.frequency
        print(freq)
    } 
</code></pre>