An example of how to set up the latest version of AKSequencer is not available, so I had to assume a few things based in the previous version.
I have the following imple
@c_booth provided the answer in the following post ( AudioKit: Using the new AKSequencer with any variety of the callback instruments )
Seems that the loop
, tempo
are set in the track
not the sequencer itself,
// set up a track
let track = seq.addTrack(for: cbInst)
for i in 0 ..< 4 {
track.add(noteNumber: 60, position: Double(i), duration: 0.5)
}
track.length = 4.0
track.loopEnabled = true