I'm a swift learner and currently working on an Xcode Playground project. Now I'm facing a problem and really need some help here. Tracking the real-time frequency and the amplitude of selected music is the core part of my Playground.
Is there any built-in framework in Xcode Playground that can track the frequency and amplitude of mp3 files? Considering AudioKit cannot import into Playground individually, I wonder which framework I should use (CoreAudio, AVFoundation, AudioUnit or something else?).
I only want to get the real-time numerical value of frequency and amplitude in Swift Playground, nothing more.
Appreciate every answer, it would be awesome if anyone can give me some sample code.