How to generate repeating sound with AudioKit in swift

Solution 1:

You could try using either the Sequencer or AppleSequencer and assigning the notes as Midi. One known drawback with AppleSampler is a delay in the first note playing. You can see an example of AppleSequencer in MusicToy and Sequencer in the Shaker example of AudioKit/Cookbook on Github.