Following on from a previous issue, I stopped using AKSampler
to move to the functionality used in AKMIDISampler
. Got my loops working again (with
I had a mystery sinewave in my code as well. In my situation, it turns out I had an extra occurrence of the following code:
AudioKit.output = sampler
So I accidentally ended up specifying AudioKit.output twice. After removing the extra occurrence, the sinewave disappeared. I'm not sure how this caused the sinewave, but I'm leaving this answer here in case it helps others who might have a similar issue.