I need to delete all tempo events from an AKSequencer instance but I can't find a way to do it.
I tried to use the clearRange() method as shown below but I'm not sure it is the right way because it won't work:
var sequencer = AKSequencer()
// successfully adding a few tempo events with addTempoEventAt(tempo bpm: Double, position: AKDuration)
...
// trying to remove them
let sequenceLength = sequencer.length
sequencer.clearRange(start: AKDuration(beats: 0.0), duration: sequenceLength)
Is there something I am missing?