988 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
0
answers
68
views
Swift AudioKit seek() function stops AudioPlayer looping
I'm building an audio app with XCode, using the AudioPlayer class from the AudioKit package to handle playback. When using AudioPlayer's seek() to seek to a specific point in an audio file, it works, ...
1
vote
0
answers
37
views
AudioKit 5: DynamicOscillator waveform not applied when triggered via MIDI callback instrument
I'm trying to use DynamicOscillator with a MIDI callback instrument in AudioKit.
However, the oscillator always plays a sine wave, no matter which waveform I set.
Here’s my code:
import SwiftUI
import ...
2
votes
0
answers
29
views
Instruments shows leaks from AudioToolbox after starting AudioKit engine (v5.6.5)
I’m using AudioKit 5.6.5 with SwiftUI. When I create and start an AudioEngine, Instruments’ "Leaks" tool flags leaks attributed to AudioToolbox. When I stop the engine or remove my view, the leaks ...
1
vote
1
answer
84
views
Disable portamento in AudioKit Oscillator
I'm building a simple monophonic synthesizer using AudioKit's Oscillator with an AmplitudeEnvelope.
When I switch notes, the pitch slightly slides from the previous note, as if portamento is applied.
...
1
vote
0
answers
15
views
AudioKit Mixer().removeAllInputs crash if add a drywetmixer as input
I am using audioKit to process audio file with effects.
I edit cookbook demo codes :
class BitCrusherConductor: ObservableObject, ProcessesPlayerInput {
let engine = AudioEngine()
let player =...
1
vote
0
answers
41
views
How to use AudioKit to make multi-track edit audio app
My need is to make a multi-track audio editor, for every individual audio clip, we can change speed, pitch, or volume of it, My idea is to make every one of them becomes an AVAudioPlayerNode (In ...
1
vote
0
answers
46
views
AppleSampler SF2 Loading function failure - (NSURLErrorDomain 256)
I'm building a SwiftUI app and am running into a persistent error trying to load an SF2 file into an AppleSampler and I'm completely stuck.
My Goal:
I'm trying to load a preset from an SF2 file that ...
3
votes
2
answers
206
views
kAudioUnitErr_InvalidParameter in AudioKit stand-alone SwiftUI Mac app, but no error in MacCatalyst AudioKit Cookbook
Starting with the awesome examples in the AudioKit Cookbook, I built a fairly involved, working chunk of AudioKit-bases Swift code that does some complicated things (layered sampler using > 1 GB ...
1
vote
1
answer
41
views
Abrupt release for AmplitudeEnvelope
I've made a little project where I play an Oscillator through an AmplitudeEnvelope, and what I'm looking for is the traditional ADSR amplitude curve with a distinct attack, sustain and release part. ...
2
votes
1
answer
34
views
AudioKit v5 sequencer set length during playback causes lag / callback issue / implementing count-in
I'm using AudioKit v5 Sequencer to implement a track with count-in. The idea is the make the count-in seamless by put 4 count-in beats at last of my track of 16 beats, set the sequencer length = 20, ...
1
vote
0
answers
46
views
How to use AudioKit completionHandler and schedule buffer
I am brand new to Swift and AudioKit so please forgive my ignorance. I'm sure that I'm missing something basic. I'm trying to learn how to use AudioKit to play PCM buffers and trigger the ...
1
vote
0
answers
32
views
AudioKit recording and separating instrument audio into individual files during a single MIDI playback
I use Audiokit successfully to play back a Midi sequence using multiple MidiSamplers -> Single Mixer. It normally goes to the audio output of the device, and that works just fine. Now, what I would ...
0
votes
1
answer
90
views
Playing Audio With AudioKit 5 - Unable to start playback
I'm trying to get AudioKit 5 working. The docs are kind of a massive monolith, no easy central getting started guide that I can find. There are a bazillion samples, but getting started should be easy.
...
3
votes
0
answers
84
views
AudioKit: Synchronization for AppleSequencer and AudioPlayer at regular intervals
Context:
I'm trying to play audio files over an AppleSequencer.
The audio file playbacks should be triggered in accurate sync with a predefined sequence of AppleSequencer beats: file 1 playback starts ...
1
vote
0
answers
75
views
AudioKit: how to normalize an audiofile (AudioKit/Swift)
Previously the following code could normalize an audiofile. But in AudioKit 5, AKAudioFile() was removed and so for some reason normalize functionality also fell through the cracks. So, how do I ...