I'd like to be able to get amplitude and spectrum data from my AudioPlayer, but since each Node can only have one tap, I'm unsure how to make this work in AudioKit 5
player = AudioPlayer(file: fileToPlay)!
fftTap = FFTTap(player, bufferSize: 4096, handler: { _ in })
ampTap = AmplitudeTap(player)
ampTap.analysisMode = .peak
do
{
try engine.start()
fftTap.start() // installs this tap on the player bus
ampTracker.start() // removes the fftTap and installs this one
}
catch
{
print("Could not start engine: %\(error)")
return
}