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
2 answers

How to use AudioKit to write a Mac command line app that print all the midi notes from keyboard?

I want to write a simple program that will print the notes input from the keyboard. I have something already shown below, but the program will finish and won't wait there for midi signal. Any ideas? Thanks The main file: import Foundation import…
Linus
  • 69
  • 4
0
votes
1 answer

Audiokit drum synthesis

I would like to make drum sounds using audiokit , the obvious thing would be to use samples, the less obvious approach would be to synthesise from base waveforms/white noise e.t.c Two questions: 1: Has anyone got/come across any tutorials for drum…
JohnOfIreland
  • 271
  • 2
  • 11
0
votes
2 answers

AudioKit v5 freeze after use Microphone, also in the cookbook

It also happen cookbook: start Tuner then switch to DrumSequencer after few time when switch quickly, the app freeze. The App freeze happen after call engine.stop() any idea what can solve this issue?
gilgul
  • 51
  • 3
0
votes
2 answers

AudioKit v5: How does one choose the microphone?

I am trying to update my project to AudioKit v5, using SPM. As far as I can see in the current documentation, you instantiate the microphone by attaching it to the audio engine input. However, I am missing what used to be AudioKit.inputDevices (and…
Ron Regev
  • 459
  • 2
  • 18
0
votes
1 answer

How to sync accurately enough two music sequences (Audiokit.AKAppleSequencer)?

I have 2 sequencers: let sequencer1 = AKAppleSequencer(filename: "filename1") let sequencer2 = AKAppleSequencer(filename: "filename2") Both have the same bpm value. When sequencer1 starts playing one midi track (playing it only once) I need that…
pavelcauselov
  • 519
  • 5
  • 10
0
votes
1 answer

Trouble Installing AudioKit/Core 4.11 for watchOS App with CocoaPods

I am running Xcode 11.7. When I pod install in Terminal, I get an error saying - [!] Unable to read the license file `LICENSE` for the spec `AudioKit (4.11)` And also when I tried to import AudioKit into my project (just for giggles), I got a…
0
votes
0 answers

AudioKit memory leak when instantiating effects

I've built a convenience wrapper for defining/creating AudioKit effects: public struct SQEffect { public var type: EffectType = .delay public var node: AKNode! public var usesSync: Bool = false public var dryWetMixer: AKDryWetMixer?…
jbm
  • 1,248
  • 10
  • 22
0
votes
1 answer

Audiokit AKSampler not playing sounds

currently trying to get my AKSampler to play sounds that I send it but not having much luck getting audio to output. My AKMidiCallbackInstrument is properly logging the notes playing (although I'm seeing the print for each note twice..) However, the…
0
votes
1 answer

How do I get an AudioKit AKPluckedString to fade out gracefully?

I am quite new to AudioKit. I have an AKPluckedString that works, but unaltered it plays after a .trigger for MANY seconds. I want it to fade evenly over about 2 seconds. I've succeeded with the code below, but it seems quite clumsy. Before I found…
LostInTheTrees
  • 1,135
  • 9
  • 19
0
votes
1 answer

Can I get AudioKit appendAsynchronously to create a file with name other than '.caf', and to output in .mp4 format?

I have the following AudioKit usage scenario under iOS: I record a sound from the microphone. I save the sound asynchronously to the tmp directory as an .mp4 file. I record a second sound from the microphone. I attempt to (a) retrieve the…
Chatanooga
  • 65
  • 6
0
votes
1 answer

AKMIDICallbackInstrument handling more than 16 channels

I've been using AKMIDICallbackInstrument for connecting a single Audio Unit to Apple's sequencer. This has worked fine in the past, but I now want to extend this into a multi-timbral context. Since the AKMIDICallback only allows for passing (status,…
jbm
  • 1,248
  • 10
  • 22
0
votes
0 answers

Swift Thread 1: EXC_BREAKPOINT (code=EXC_ARM_BREAKPOINT, subcode=0xe7ffdefe)

I am playing a 2500 Hz sound on iPhone 4s iOS(9.3.5) and by debugging i get this error. override func viewDidLoad() { AKSettings.defaultToSpeaker = true do{ try…
Saurav_Sharma
  • 130
  • 1
  • 10
0
votes
2 answers

AudioKit - Midi - How do I determine the state of a know without events?

Sorry, this may be a dumb question, but I am new to MIDI and no musician - I am trying to figure out if I can use a MIDI Controller for some other control application. I know how to set up the MIDI system and receive MIDI events using AudioKit.midi…
Michael J
  • 145
  • 10
0
votes
1 answer

AudioKit playback cracks

I want to analyze the microphone input frequency and then play the correct note which is near the frequency which was determined. I did that with of AudioKit. This is working right now but since I implemented AudioKit to get the frequency feature…
0
votes
1 answer

AudioKit output changes to ear speakers

I implemented the AudioKit "MICROPHONE ANALYSIS" example https://audiokit.io/examples/MicrophoneAnalysis/ in my App. I want to analyze the microphone input frequency and then play the correct note which is near the frequency which was determined.…