Questions tagged [audiokit]

AudioKit is an audio synthesis, processing, and analysis platform for macOS, iOS, and tvOS.

Use this tag to get answers on AudioKit. Please post code that you have tried. Make sure it is actually a question concerning AudioKit. Questions for toolchain, language or software design should also contain more tags to get a wider audience.

Getting help

There are two methods for getting support for AudioKit, listed in order of what you should try first:

  1. Post your problem to StackOverflow with this audiokit tag.

  2. If you are pretty sure the problem is not in your implementation, but in AudioKit itself, you can open a Github Issue.

Links to documentation, samples and code

947 questions
14
votes
1 answer

Getting "throwing -10878" when adding a source to a mixer

AudioKit, macOS: When I do mixer.addInput(myAudioPlayer), the program outputs this message: 2021-09-16 11:41:44.578038+0200 ShowTime[16140:1611137] throwing -10878 ... numerous times. Do you know what -10878 is, and how to fix it? I would also be…
Thomas
  • 413
  • 2
  • 10
14
votes
0 answers

Crash when EZRecorder calls ExtAudioFileWrite on iPhone X

I have a sample app that uses AudioKit to record audio and display a waveform of that audio data. This sample app has two viewControllers with the root vc being a blank page with a button that will take the user to the audio recording page. For some…
KyleCas
  • 163
  • 4
14
votes
1 answer

Trying to combine 2 Audiokit examples: MicrophoneAnalysis and Recorder: crashes when I hit record

I am trying to combine MicrophoneAnalysis and Recorder examples. It keeps crashing at the line try recorder.record. 2018-01-08 21:21:48.507019-0800 Music Practice[90266:18761122] [avae] AVAEInternal.h:70:_AVAE_Check: required condition is false:…
user2876642
  • 205
  • 2
  • 10
10
votes
1 answer

AKManager Audiokit crash: HALB_IOBufferManager_Client::GetIOBuffer: the stream index is out of range

I am running XCode 12.4 and iOS 13.7. The following, straightforward class import AudioKit import UIKit class SoundManager { private var sampler: AKAppleSampler private var booster: AKBooster private var reverb: AKReverb private…
abinop
  • 3,153
  • 5
  • 32
  • 46
10
votes
1 answer

How to save audio file with AudioKit?

I have audio file. I made some effects on it let pitchshifter = AKPitchShifter(self.audioPlayer) pitchshifter.shift = 10 AudioKit.output = pitchshifter It works if I play it in app, but I want to save it as a new file to use it as avasset later.…
Mikita Kaltsou
  • 273
  • 3
  • 10
10
votes
1 answer

AudioKit - no sound output

I try to use AudioKit to ouput a pure sine wave. https://github.com/AudioKit/AudioKit I've tried to set up a new project like on there homepage, and also tried there "Hello World" Example, included in the AudioKit Download. Both builds fine, and the…
Manuel
  • 613
  • 1
  • 6
  • 20
9
votes
1 answer

Audiokit strange amplitude values on small frequency

I'm trying to build simple spectrum analyser using AudioKit library for iOS: Yellow line is max, red is current - changes 10 times per second. The problem is, that amplitude values for first few frequency points are too high, that i think is…
Vadim
  • 3,855
  • 2
  • 17
  • 22
9
votes
1 answer

CoreAudio crash - AVAudioIONodeImpl.mm:365: _GetHWFormat: required condition is false: hwFormat

I'm working with two application modules: 1) Recording module with this audioSession setup: try audioSession.setCategory(AVAudioSessionCategoryRecord) try audioSession.setMode(AVAudioSessionModeMeasurement) try…
Nadir Bertolasi
  • 527
  • 6
  • 17
8
votes
1 answer

How to apply audio effects in iOS

I use AVPlayer to play audio(streaming or local file). For this audio I want to apply some effects - boost volume, skip silence, reduce noise, change speed(in 0.1 intervals). I did same thing in android by creating own player, decoding different…
Martin Vandzura
  • 3,047
  • 1
  • 31
  • 63
8
votes
2 answers

Read note from MIDI file using AudioKit

I am trying to build a sequencer that render the note from midi file. Currently I am using AudioKit for the music data processing. Would like to know how can I get the note data / event from the midi file with AudioKit. I have tried to use…
Tony Fung
  • 1,222
  • 1
  • 11
  • 15
8
votes
1 answer

AKMIDIListener not receiving SysEx

I am using AudioKit's AKMIDIListener protocol on a class to listen for MIDI messages. This is working fine for standard messages such as Note On, but SysEx messages are not coming through. func receivedMIDINoteOn(noteNumber: MIDINoteNumber,…
Oscar
  • 668
  • 6
  • 12
7
votes
1 answer

Module 'AudioKit' has no member named 'start'

I am trying to run AudioKit.start() in my viewDidAppear method but I get the following error: Module 'AudioKit' has no member named 'start' My pod file includes: pod 'AudioKit', '~> 4.0' pod 'AudioKit/Core', '~> 4.0' pod 'AudioKit/UI', '~>…
aritroper
  • 1,671
  • 5
  • 16
  • 26
7
votes
1 answer

AudioKit crash: required condition is false: !destNodeMixerConns.empty() && !isDestNodeConnectedToIONode

We are experiencing an exception in our project: 2019-08-08 10:18:28.703708-0600 AppName[99385:5069475] *** Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: !destNodeMixerConns.empty()…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
7
votes
1 answer

AVAudioSession .defaultToSpeaker changes mic input

I have an app taps the microphone and also play sounds depending on mic input(don't have to be simultaneously tho) This code below works. But one problem is the output plays on the small top speaker and not the bottom real loud speakers. I could…
Spring
  • 11,333
  • 29
  • 116
  • 185
7
votes
2 answers

How to connect AKSequencer to a AKCallbackInstrument?

I want to read a midi file and display things when note events are triggered. I found this stackoverflow question, where the second answer suggests to use AudioKit : How Do I Get Reliable Timing for my Audio App? More precisely, the suggestion is to…
1
2 3
63 64