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
1 answer

AudioKit: can't restart AudioKit sampling of frequency after calling 'AudioKit.stop()'

I'm using AudioKit 4.10. I use this simple code to sample frequency and amplitude from a microphone: import AudioKit protocol MicAnalyzerDelegate { /** * The MicAnalyzer calls this delegate function. */ func…
madx
  • 6,723
  • 4
  • 55
  • 59
0
votes
1 answer

AKAmplitudeTracker amplitude getting 0.0 using audioKit

I want to get the volume of AKAmplitudeTracker but getting -inf what is wrong with me please help out. AKAudioFile.cleanTempDirectory() AKSettings.audioInputEnabled = true AKSettings.bufferLength = .medium …
Developer
  • 760
  • 3
  • 15
0
votes
0 answers

How to emit noise around center frequency inside some bandwidth

I'm trying to emit white noise around specific center frequency inside bandwidth using AudioKit for iOS. Core of what I did so far looks like this: class Manager { private let noise = AKWhiteNoise(amplitude: Default.amplitude) private lazy…
unablys
  • 1
  • 1
0
votes
1 answer

How does the bandwidth parameter of the AKEqualizerFilter affect the Q-factor?

I'm adding some equalizers to my app using the AKEqualizerFilter from AudioKit and I just want to make sure I understand how the bandwidth parameter affects the Q-factor. As far as I understand it, dividing the center frequency by the bandwidth will…
lxirsh
  • 93
  • 8
0
votes
0 answers

ios how to combine AVAudioEngine speech recognition with AudioKit microphone pitch detection?

I would like to use AVAudioFoundation for microphone input for speech detection as shown in this ios example and simultaneously detect the pitch of the user’s voice through the same microphone input, using AudioKit. The latter API is probably a…
synchronizer
  • 1,955
  • 1
  • 14
  • 37
0
votes
1 answer

How to work with a monophonic AKNode in a stereo session?

In the environment where the AKSettings.channelCount = 2 an AKMicrophone recording is output to a single channel. So, I'd like to be able to understand how to properly patch or mix the audio in AudioKit, please? Let's look at the following example,…
punkbit
  • 7,347
  • 10
  • 55
  • 89
0
votes
0 answers

AudioKit Playground Builds fail

I'm new to Xcode and I've decided to use AudioKit for the sound of my apps, so I'm starting to try out all of the functions through the AudioKit playground. When ever I try to run any of the AudioKit playground examples, the build fails and brings…
0
votes
1 answer

How to play MIDI File with AKAppleSequencer

I'm attempting to play a basic MIDI file using AudioKits legacy sequencer, AKAppleSequencer. I've gotten it to play the first note of the file, but nothing after. (I couldn't get any output from the new AKSequencer.) Here is my code which is…
0
votes
2 answers

How to include Audiokit 4 in a new project xcode 11 and swift 5.1?

I've recently tried to include Audiokit 4 in a new project using Xcode 11 and swift 5.1, but I get the error message No such module Audiokit, the closest I get to Audiokit is CoreAudiokit by following the instructions in…
punkbit
  • 7,347
  • 10
  • 55
  • 89
0
votes
1 answer

AudioKit AKMetronome callback timing seems imprecise or quantized

I'm new to AudioKit and digital audio in general, so I'm sure there must be something I'm missing. I'm trying to get precise timing from AKMetronome by getting the timestamp of each callback. The timing seems to be quantized in some way though, and…
JiminyKirket
  • 34
  • 1
  • 2
0
votes
1 answer

AudioKit 4.9.5 Microphone doesn't work, all 0 readings

I've been trying to use the microhpone with AudioKit. The code compiles and runs it also request permission to access to microphone but all the frequency and amplitude readings are all 0. Here is the class I wrote to dispatch Microphone readings as…
Bamdad Dashtban
  • 354
  • 3
  • 17
0
votes
1 answer

Audiokit: No output in loudspeaker (iPhone 4s) just in ear-speaker. AKSettings with .defaultToSpeaker does not work

I figured out some of the iOS AudioKit examples (for example the Recorder-app) on a iPhone 4s but I have always the problem that there is no sound from the loudspeaker, just from the ear-speaker. I made a simple record and play-app with AudioKit but…
Alfab
  • 11
  • 2
0
votes
0 answers

Why is AKAppleSequencer playing midi file faster if the tempo for the file is greater than 60?

I am loading a midi file in AKAppleSequencer which has a tempo of 80 BPM. I checked the sequencer.length.seconds property and it shows the length of the file in seconds. In my case the file is 33 seconds long and the length.seconds property shows…
Sarang Borude
  • 329
  • 1
  • 12
0
votes
1 answer

EXC_BAD_ACCESS error when using AKWavetable

I'm trying to load a sample into AKWavetable and get this error: Thread 1: EXC_BAD_ACCESS (code=1, address=0x20) It cant be the sample itself, because I have tried the whole thing with AKPlayer and it worked fine.. any ideas? var sampler =…
0
votes
1 answer

Why won't the sequencer in AudioKit play my drum sounds and why is the volume so low?

First of all, a great framework. This is singlehandedly allowing me to graduate from my master's program. Also, I'm a sponsor! Any help would be taken with much gratitude. I can also push my repository and share it on GitHub for a closer…
Marcus Kim
  • 283
  • 2
  • 12