I have a Web Audio API based signal process application and I have to port it to iOS with AudioKit(based on EZAudio) framework.
I need only the FrequencyDomain that is contains numbers between 0-255 in Web Audio API.
But in the AudioKit the AKFFTTap fftData gives me back floats between -6 to 6 and sometimes <1000.
Here is what I have already tried on ios:
init process ...
let mic = AKMicrophone()
let fftTap = AKFFTTap.init(mic)
request ...
return fftTap.fftData
on Web Audio API: init...
var analyser = audioContext.createAnalyser();
request...
let freqDomain = new Uint8Array(analyser.frequencyBinCount);
analyser.getByteFrequencyData(freqDomain);
return freqDomain
How can I get back the same data?