I have PitchYin working nicely on an iPad and a recent iPhone SE, but for some reason on an iPhone XR (actually two) the detection is 1-2 semitones off (if I play a G, it will detect a G# or an A).
Things I have tried:
Verifying that the sampleRate is getting set correctly as read from AVAudioEngine
Adjusting the frame size from 512 - 4096.
Turning interpolation off/on
Adjusting the AVAudioEngine tap buffer size to match the frame size
The only lead I have to go on is that the iPhone XR was a lower-end device, and is slightly older (2018). It is however updated to the latest release of iOS (16).
I have PitchYin working nicely on an iPad and a recent iPhone SE, but for some reason on an iPhone XR (actually two) the detection is 1-2 semitones off (if I play a G, it will detect a G# or an A).
Things I have tried:
The only lead I have to go on is that the iPhone XR was a lower-end device, and is slightly older (2018). It is however updated to the latest release of iOS (16).
Anyone have any ideas?