aksequencer

AudioKit: Using the new AKSequencer with any variety of the callback instruments

戏子无情 提交于 2020-07-07 20:31:32
问题 This topic has been covered Numerous Times, and I have successfully used a AKMIDICallbackInstrument with the old AKAppleSequencer in my previous apps. I am starting to use the new AKSequencer which is absolutely phenomenal: elegant interface, and easy to use. However, I cannot for my life figure out how to handle callback events with it. I need to use a callback in order to trigger GUI events based on the sequencer playing. Here is my example code: private func setMetronome(bpm: BPM, beats

AudioKit: Using the new AKSequencer with any variety of the callback instruments

匆匆过客 提交于 2020-07-07 20:30:10
问题 This topic has been covered Numerous Times, and I have successfully used a AKMIDICallbackInstrument with the old AKAppleSequencer in my previous apps. I am starting to use the new AKSequencer which is absolutely phenomenal: elegant interface, and easy to use. However, I cannot for my life figure out how to handle callback events with it. I need to use a callback in order to trigger GUI events based on the sequencer playing. Here is my example code: private func setMetronome(bpm: BPM, beats

AudioKit: Using the new AKSequencer with any variety of the callback instruments

无人久伴 提交于 2020-07-07 20:29:02
问题 This topic has been covered Numerous Times, and I have successfully used a AKMIDICallbackInstrument with the old AKAppleSequencer in my previous apps. I am starting to use the new AKSequencer which is absolutely phenomenal: elegant interface, and easy to use. However, I cannot for my life figure out how to handle callback events with it. I need to use a callback in order to trigger GUI events based on the sequencer playing. Here is my example code: private func setMetronome(bpm: BPM, beats

AKSequencer with Ableton Link

徘徊边缘 提交于 2020-04-16 05:40:28
问题 Has anyone did synchronization AKSequencer with Ableton Link accurately? Whatever I do, it not synchronized at all. I take beatTime from AbletonLink and play sequencer at this position + output latency. Since the delay between function play called and actual playing is unpredictable, it not working 回答1: We don't use the AKSequencer (which is based on Apple's sequencer and therefore mostly closed source) for our synths that need a sequencer because of this unpredictability. Instead we use

How to play MIDI with AudioKit's new AKSequencer

﹥>﹥吖頭↗ 提交于 2020-01-24 09:51:13
问题 I'm on AudioKit 4.9.1 and can't manage to play a MIDI file with the new AKSequencer (replacing AKAppleSequencer ). No sound playing. Assume that MIDI file AND samples are loaded correctly since they previously worked with AKAppleSequencer . Background audio mode capability is also enabled. Here's the relevant code: (I've also tried both AKSampler and AKAppleSampler but same result) class MIDIPlayer { var sampler: AKSampler var legacySampler: AKAppleSampler var sequencer: AKSequencer init

AudioKit ios AKSequencer Not Restarting Playback Accurately

孤街浪徒 提交于 2019-12-10 10:47:08
问题 I'm trying to use AudioKit to playback a sound on each beat of a measure(s). Although I've implemented the code from this similar question regarding callbacks via AudioKit, I can't seem to get the sequencer to update changes and playback properly. It will play once accurately, however after rewinding and changing the values it will only use the initial values (or not playback at all). My intent is to create a struct of measures with beat values for each measure, then use MIDI and the callback

AudioKit ios AKSequencer Not Restarting Playback Accurately

强颜欢笑 提交于 2019-12-06 09:30:15
I'm trying to use AudioKit to playback a sound on each beat of a measure(s). Although I've implemented the code from this similar question regarding callbacks via AudioKit, I can't seem to get the sequencer to update changes and playback properly. It will play once accurately, however after rewinding and changing the values it will only use the initial values (or not playback at all). My intent is to create a struct of measures with beat values for each measure, then use MIDI and the callback to play different sounds dependent on how many measures/beats there are. Thanks! import UIKit import