How is the AKSequencer setup in AudioKit > 4.8?

后端 未结 1 326
慢半拍i
慢半拍i 2021-01-21 17:22

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

相关标签:
1条回答
  • 2021-01-21 17:38

    @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
    
    0 讨论(0)
提交回复
热议问题