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
0
votes
0 answers

Audiokit header file not found

I started a new project and installed audiokit cocoa pods. I created a new h file. when I try to #import “AKAudioUnit.h” (or any other Audiokit h file) I get a “file not found” error.
Jonny123
  • 59
  • 5
0
votes
1 answer

AKFFTTap goes out of sync in IOS app, how to fix?

When using a live audio source for the AKFFTTap like the microphone, the fft data is perfectly in sync until the app goes into the background and then returns. The fft data becomes several seconds delayed from from the live input from that point on.…
0
votes
1 answer

AudioKit AKPlayer isLooping doesn't work without buffer bufferLooping, intended?

I'm working with the AudioKit Playgrounds, and I've noticed that the "Connecting Nodes" Playground doesn't loop without bufferLooping enabled. I looked at a few other playgrounds, and this seems to be universally true. Is anyone else seeing…
Andrew
  • 529
  • 1
  • 3
  • 12
0
votes
1 answer

AudioKit v4 now has internalAU set to private/

I'm working on my AudioKit app for the first time in nearly a year, so I've had to update my version of AudioKit to v4 In v3 I had been using internalAU.fullStateForDocument on the AKSampler to get at the envelopes, but apparently now internalAU has…
narco
  • 830
  • 8
  • 21
0
votes
1 answer

Connecting AKNodes after init

Easy to connect a synth to a AudioKit compressor like... compressor = AKCompressor(akMidiSampler) Instead of this I need to connect after the initializer... compressor = AKCompressor() ... How can I connect this AKMidiSampler to the compressor…
Fischer
  • 1,513
  • 4
  • 17
  • 38
0
votes
1 answer

AudioKit: How to operate with AKOperation parameter values as Double?

I want to calculate pow() in the following context: let generator = AKOperationGenerator { parameters in let depth = PitchEnvVCO.freqDecayDepth.times(PitchEnvVCO.freqDecayAmount) let wdth = pow(2.0, depth/12.0) * PitchEnvVCO.frequency //…
headkit
  • 3,307
  • 4
  • 53
  • 99
0
votes
1 answer

Get device volume - issue

Coincidentally, I encountered some strange behavior from my source code while developing an app: I have started an interval that calls a function to output the set volume of the device. When testing the code on a real device (iPhone X), I noticed…
user9453460
0
votes
1 answer

How to change frequency of AKMorphingOscillatorBank countinuously in Audiokit?

I am new to Audiokit. I want to build a tuneable monophonic wavetable-oscillator with morphable table output that could be synced to an others oscillators frequency. I startet with AKMorphingOscillatorBank but could not find out how to change its…
headkit
  • 3,307
  • 4
  • 53
  • 99
0
votes
0 answers

Get dB(a) level from AudioKit in swift

I am attempting to get dB(A) readings from audio recorded from the microphone from AudioKit. I attempt to pass the amplitude tracker into the AKFFTTap object, but it always returns an array of zeros when I call AKFFTTap.fftData. Does anyone have…
loadedjd
  • 97
  • 2
  • 6
0
votes
1 answer

Fatal error: AudioKit: Could not start engine. When calling AudioKit.start()

I'm using AudioKit 4.0.4 with iOS 11.2 I'm using a code that is almost the same as the MicrophoneAnalysis sample project. class FrequencyProcessor { var node: AKNode { return mic } private let mic: AKMicrophone private let…
ydemartino
  • 242
  • 5
  • 10
0
votes
0 answers

How to get vector with amplitudes?

I tried with AVFoundation, AudioKit and EZAudio. But I could not. I want some way to get all the amplitudes of the whole song (without play the music), to have the average amplitude. Does anyone know how? I do not need the whole algorithm. Examples…
0
votes
0 answers

AudioKit generates two small `caf` files on temporary folder

I use AudioKit in my app. Since I implemented AKNodeRecorder and exportAsynchronously method on my app, AudioKit generates two small caf files on temporary folder when the app is launched. A size of each file is 4KB, so it's not a serious problem…
0
votes
1 answer

Do AKAudioPlayer nodes apply a 10 ms fade out once they are stopped before reaching the end of the file/buffer?

First off, I just want to say thanks to the team at AudioKit for shedding some light on some difficult problems through their code. I have a few questions. 1: It does not appear the the AKAudioPlayer class applies on-the-spot fades if a player is…
Budge
  • 91
  • 7
0
votes
1 answer

AudioKit: change sound based upon gyro data / swing phone around?

This is an AudioKit question: I am really new to AudioKit and audio in general. My question is: How could I use AudioKit to create a sound that changes as I move my phone around? I already know how to get the gyro information so lets say I can take…
MichaelG
  • 103
  • 1
  • 8
0
votes
1 answer

(Class) is unavailable: cannot find swift declaration for this class ONLY for iPhone <= 5 simulator, Generic iOS Device and Release Build

I understand that many similiar questions have been asked in the past - however, none of them exactly applies to my situation. I am using the AudioKit framework in my app. I added the framework by copying the framework into the app directory and…
modalmusic
  • 71
  • 4