AudioKit / AudioKit

Audio synthesis, processing, & analysis platform for iOS, macOS and tvOS
http://audiokit.io
MIT License
10.69k stars 1.56k forks source link

Code relate to AKSequencer not working anymore after update to 4.9.3 #1957

Closed s951736 closed 4 years ago

s951736 commented 4 years ago

I'm new to iOS dev and have a project using AudioKit. Before, I have using AKSequencer in my code and it works, but today I update AK to 4.9.3 (so I can open project with xCode 11.2), after that, some code is not working anymore, here is those code:

let sequencer = AKSequencer()
sequencer.setTempo(Double(bpm))  //Value of type 'AKSequencer' has no member 'setTempo'
let trackA = sequencer.newTrack()  //Value of type 'AKSequencer' has no member 'newTrack'
sequencer.enableLooping(AKDuration(beats: Double(patternSeq.timeCoreData.timeSignature.upper)))
//Value of type 'AKSequencer' has no member 'enableLooping'

I guess those code been replaced by other commends in the update process, but I'm not really sure. How can I know which code I should use to replace my code? Is there any official release detail mention those changes that I can read before I update AK? Thanks.

aure commented 4 years ago

Change all your occurrences of AKSequencer to AKAppleSequencer. AKSequencer is now or own open source sequencer and the one we used to use was renamed.