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

MIDI messages are multiplying

I keep running into a strange issue when running AKMIDI on IOS. I also think it may be an IOS problem and not necessarily from Audiokit. I can connect a MIDI controller to IPad and receive messages as expected using the MIDI listener protocol after…
0
votes
1 answer

Swift - AudioKit Sequencer with Oscillator (AKOscillatorBank). Frequencies wont play at higher range (MidiNote 120+)

I'm learning how to use AudioKit. I'm trying to play around with the sequencer and an oscillator. Everything is working dandy but i noticed when i feed a higher frequency to an oscillator that is in a sequencer track, it will render the same for…
AndreasP
  • 1
  • 1
0
votes
3 answers

Xcode 11.2.1 Error - Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler

After updating to Xcode 11.2.1, I cannot import AudioKit without getting this error: "Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler". I've said yes to "Build libraries for distribution" but still getting the same…
Craig Verveen
  • 31
  • 1
  • 8
0
votes
0 answers

How to be notified when AKPlayer reaches a specified time

I have a need to detect when a specific time stamp is reached in an AKPlayer. When that point is reached, I move the playhead back to repeat a section of the song to support a vamp feature in the app. My current approach is to use a Timer that's…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
0
votes
1 answer

Implementing Overtone Series(Harmonic Series) using Audiokit Sampler

I am a beginner with Audiokit. I am trying to implement Overtone Series Effect on harmonies using Audiokit. I am using Midi Sampler along with AKappleSequencer to play different notes. As in the overtone series I will be required to change or adjust…
Achilles
  • 250
  • 5
  • 13
0
votes
1 answer

A problem I have when I try to swap between AudioKit players

When I try to swap between AudioKit players, I have different types of problems. I'll add the code, but I'll try to simplify it. Let's say, I have five players and one recorder for those players, I'm recording player1 once and player2 once, if I'm…
Kurteran
  • 33
  • 4
0
votes
1 answer

AudioKit.renderToFile AKClipPlayer synchronisation issue. Rendered File is out of sync with the first clips position and also truncated

I've got a problem with Audiokit's renderToFile method. I've got one AKClipPlayer, that has one clip starting from position 0.0. I need to render AKClipPlayer resulting playback into the file. func preRender() { self.clipPlayer.play() } …
0
votes
0 answers

Chaining Sequencer Formulas / Playing Sequences one after another

I have a sequencer built in AudioKit made up of various AKMIDISamplers to create a 12 beat sequence. This works great. Now I would like to chain multiple sequencers together and have the sequences play one after another (instead of at the same…
fletan_
  • 9
  • 2
0
votes
1 answer

AKSequencer Midi Note at position 0.0 not sending start byte

In an AKSequencer track I add midi notes, the first is positioned at 0 trackOne?.add(noteNumber: MIDINoteNumber(64), velocity: 100, position: AKDuration(beats: 0.0), duration: AKDuration(beats: 0.5)) the note at position 0 never plays in a single…
JohnOfIreland
  • 271
  • 2
  • 11
0
votes
1 answer

Problem opening a virtual MIDI Input in IOS with AudioKit MIDI

Having a problem setting up a virtual MIDI input port that shows up on other apps. I'm probably just leaving out something here. MIDI, in general, has been working great using an external midi port from the camera kit. Any suggestions are…
0
votes
1 answer

iOS Library to Play the wav file coming over the socket

I am connecting to a socket which is transmitting audio wav file in 1024 byte chunks and I am looking for a swift library to play that. Just wondering if there is any. Current state of my code is this. import UIKit import SwiftSocket class…
itsaboutcode
  • 24,525
  • 45
  • 110
  • 156
0
votes
1 answer

Can AudioKit play a sound while microphone is analyzing frequency?

I want to make an ear training app, so I want to make a sound while the microphone analyzes the frequency. I'm at the beginning to prove the concept, so for now, I just took AudioKit's sample app MicrophoneAnalisys and added some codes to make a…
tsuyoski
  • 614
  • 5
  • 22
0
votes
0 answers

Release (envelope) cut out when AKsequencer repeats?

I'm using AKSequencer to trigger AKPlayer using a midi note, to repeat certain audio files. The question I have is that, the audio files are sometimes slightly longer than the designated midi durations, because there are release sounds included in…
Gavin
  • 251
  • 1
  • 6
0
votes
1 answer

AKAudioFile exportAsynchronously path errors

I'm trying to use AKAudioFile.exportAsynchronously to convert wav to m4a (based on the sample code here: https://audiokit.io/playgrounds/Playback/Exporting%20Files/). I've chosen .documents as my BaseDirectory, but I just keep getting directory…
jbm
  • 1,248
  • 10
  • 22
0
votes
1 answer

How can I have a random phase for each note played with an AKOscillatorBank?

I am using an AKMIDINode linked to an AKOscillatorBank. I would like that each time a note is played by AKOscillatorBank, the phase of the wavetable is randomly selected. It seams that AudioKit do not provide a such feature. I had a quick look at…
Jeremy Cochoy
  • 2,480
  • 2
  • 24
  • 39