Questions tagged [audiokit]

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

-1
votes
0answers
4 views

Using AKMicrophone adds red bar after microphone node was removed

In a part of my app i need to use AKMicrophone for analyzing user input. I use an AKBooster with 0 gain and everything works fine. If I go to background while the app records, iOS shows a red sign. As ...
0
votes
0answers
11 views

Background audio stops despite background audio capability and session category

I'm using AudioKit to play sounds in my app and I'd like to have the audio keep playing in the background. But when the app goes into the background or when I go into the lock screen on my iPhone the ...
1
vote
0answers
9 views

AKsampler in combination with AKmicrophonetracker

I have merged the AKsampler example and the AKmicrophone(tracker), adding the microphone in the”conductor” Class, zo MIDI io is running and it is working but.... The volume of the sampler is reduced ...
0
votes
0answers
15 views

AudioKit AKWaveTable initialization error

I am having a weird problem initializing AudioKit AKWaveTable node. I am trying to change the sample rate of a sound on the fly and I thought AKWaveTable would be the best option to do this. According ...
-1
votes
0answers
28 views

AKSequencer bug and using AVFoundation with AudioKit

The AKSequencer has a few weird issues. Returns the wrong length of the longest track. With some MIDI files, the sequencer returns a length that is way off. This is true when using both the length ...
1
vote
1answer
28 views

Piano notes with AKKeyboardView

I am new to AudioKit - I am able to use the AKKeyboardView to play notes using AKOscillatorBank, but I want the audio to sound more like a grand piano. Loading .wav files seems to make the notes ...
1
vote
1answer
21 views

AudioKit AKWaveTable memory leak

i don't know if it's me or if i found some kind of issue with AKWaveTable. Basically when i load an audiofile (a short one, about 7 seconds) and assign it to AKWaveTable for sampling and then later i ...
2
votes
1answer
36 views

Audiokit 4.5.2 - can't install via cocoa pods in Terminal

My app's deployment target is currently set to 9.2 in Xcode. I believe 9.0 should be minimum. However when trying to update to AudioKit 4.5.2 (from 4.4) - I'm getting the following error in Terminal.....
5
votes
0answers
21 views

How to mix the audio files and upload to the server

I am using the Audiokit in my project. By using the process suggested in https://audiokit.io/playgrounds/Basics/Mixing%20Nodes/ link, I am playing the multiple audios. My requirement is to upload the ...
1
vote
1answer
22 views

AudioKit multiple AKMIDISampler

I wanted to know if it was possible for AudioKit to have multiple outputs, for instance two AKMIDISampler's. At the moment it seems like it can only have one. I would assume this would be possible ...
-1
votes
1answer
32 views

How to get and save the mixed of multiple audios in to single audio in swift

I have multiple audios files(more than 3). By using the AVAudioEngine and AVAudioMixerNode I am playing the all audio tracks into a single track. I want to save the mixed audio in the document ...
2
votes
1answer
40 views

Instantiating a subclass works in Swift playgrounds, but using the class itself does not

I have made an update to AudioKit's code, and now the playgrounds (on the develop branch) don't all work, and in researching I've found a strange case where var oscillator = AKOscillator() generates ...
0
votes
0answers
29 views

AudioKit AKNodeFFTPlot log scaling

is there a built-in way to switch the AKNodeFFTPlot (AudioKit) to log-scaling for x-axis? An output where the octaves of the frequency band have equal widths seems to be more useful than the default ...
1
vote
1answer
28 views

Xcode simulator on. Jenkins space crashes automated tests due to audio engine

I have a swift app that has automated tests, a few of which trigger sounds for different things. They run fine on my local machine in a simulator and on a real device. On our Jenkins machine which ...
1
vote
1answer
33 views

AudioKit's RenderToFile not working correctly

I have an AKSequencer which has an AKMusicTrack inside of it with the output of an AKMIDISampler. I also load the AKMIDISampler with a soundfont file. The problem that I'm facing with AudioKit's ...
1
vote
0answers
13 views

The concept of mixing nodes in AudioKit / Apple AVAudio [closed]

I'm new to AVAudio and audioKit. I am trying to build a library for my games which make extensive use of audio sources, however I don't understand the concept of mixing nodes and mixers. I've been ...
1
vote
0answers
30 views

Audiokit logging - 55: EXCEPTION (-1): “” - repeatedly

I updated to latest version of Audiokit 4.5 and my Audiokit class that is meant to listen to microphone amplitude is now printing: 55: EXCEPTION (-1): "" infinitely on the console. the app doesnt ...
1
vote
0answers
51 views

Use built-in microphone with AudioKit with headphones connected

I'm trying to change the internal microphone with the connected headphones but I do not change it. I'm using: try! AudioKit.setInputDevice(inputs[1]) try! mic.setDevice(inputs[1]) I have tried ...
1
vote
0answers
12 views

Creating feedback reduction filter in AudioKit

So I've moved forward with an audio processing app. It's basic purpose is to allow a user to use the microphone input and headphone output to produce a balanced audio signal for practical audio work. ...
1
vote
1answer
36 views

when to use AKNodeRecorder and AKClipRecorder

I don't have much of experience with sound processing or producing or tools that people use when dealing with sound processing, and this is the reason why I reached AudioKit. Some of the classes doesn'...
2
votes
1answer
35 views

Is realtime audio processing possible in iOS?

So I'm planning to build an app that at the very least let's me use the mic on an iphone be converted into a balanced audio signal through the headphone jack. The problem is I'm not sure if getting ...
1
vote
1answer
59 views

AudioKit crashes when try record after playing in AKPlayer

Here’s the problem I have. I have an app that loads sounds from the web and plays it afterward. At the same time, the app has the feature to record voice and play it. I use two different View ...
3
votes
1answer
42 views

Sending MIDI notes through a virtual port within iOS using AudioKit

So I feel like an idiot for having to post on here for what is likely a simple fix. I am writing an iOS application that will be sending MIDI to another app. For my first proof of concept I am trying ...
1
vote
1answer
38 views

Out sync sound and picture between two players

I am building a karaoke app with the ability to sing with video so here is my problem: I am recording the user video (video only from the front camera) along with applying voice filters with audiokit ...
1
vote
0answers
23 views

Downloading and loading random audiofile from Firebase 'a file in advance'

I’m working on a random audiofile playback project. I’m looking for a way to download random audio file from a remote server, but a playlist in advance for a seamless looping. I would like to get an ...
1
vote
0answers
20 views

AudioKit, exporting AVAudioPCMBuffer array to audio file with fade in/out

I'm capturing audio from AKLazyTap and rendering the accumulated [AVAudioPCMBuffer] to an audio file, in the background, while my app's audio is running. This works great, but I want to add fade in/...
1
vote
1answer
45 views

Trying to understand the output of AKFFTTap in AudioKit

Using AudioKit, I'm trying to build an app that analyses the input of the microphone and separate the incoming sound into pieces of 3 frequency ranges (low, mid, high) and their amplitude. This is ...
1
vote
0answers
33 views

Receiving Sysex messages with audiokit

I have an app which is sending controller settings to a hardware synthesizer using sysex. In other words: such a syses messages selects a parameter from the synth, and sets its value. With audiokit ...
1
vote
0answers
25 views

Calling AudioKit AKMidiSampler.loadMelodicSoundFont asynchronously

I am loading a sound font to the AKMidiSampler via the try! self.regularBeatSampler.loadMelodicSoundFont("myfile", preset: 0) method. It takes roughly 7 seconds on the simulator to load the sound font ...
1
vote
1answer
19 views

AudioKit export file with Filters

i want to override an existing .m4a file with many filters with audio kit, my code : file = try AKAudioFile(forReading: recordVoiceURL) player = AKPlayer(audioFile: file) delay = ...
0
votes
0answers
16 views

AudioKit xcode10

var delay: AKVariableDelay! var delayMixer: AKDryWetMixer! var reverb: AKCostelloReverb! var reverbMixer: AKDryWetMixer! var booster: AKBooster! var tracker : AKAmplitudeTracker! 'AKVariableDelay' ...
0
votes
1answer
38 views

Microphone attached to multiple cliprecorders crash the aplication

I am trying to create a few instances of ClipRecorders in order to later in my app just trigger cliprecorder.start(...) to record a clip. I have one instance of AKMicrophone which I provide to the ...
1
vote
1answer
32 views

AudioKit AKMicrophone not outputting any data

I am trying to capture FFT data from a microphone. I've managed to get it to work before with a similar codebase but since macOS Mojave it's broken - the fft data constantly stays 0. Relevant Code: ...
1
vote
0answers
31 views

AudioKit empty file using renderToFile with AKSequencer

I'm trying to use AudioKit.renderToFile() to export short MIDI passages to audio (m4a): // renderSequencer is an instance of AKSequencer self.renderSequencer.loadMIDIFile(fromURL: midiURL) Conductor....
1
vote
1answer
17 views

Audiokit 4.5 playgrounds opening, building, but no sound

In the past I've got previous versions of the playgrounds to work. However I can't get the new 2 day old version (4.5.0) from GitHub to work. I downloaded the zip file from https://audiokit.io/...
1
vote
1answer
27 views

AudioKit 4.5.0 Recorder example left channel only

In the Recorder example project for AudioKit 4.5.0, I am testing with standard earphone microphone on iPhone device. The playback is only in left channel. How to I record monophonic audio so it plays ...
1
vote
0answers
13 views

AudioKit exportAsynchronously fails after changing input device

I need to make an ability to change input device for record on the fly while program is running (between recording sessions, not in recording process). Here is the code that, i suppose, have to do ...
1
vote
0answers
49 views

AKMIDISampler crash on sequencer stop

I'm seeing an intermittent crash in my app when stopping the sequencer. My app uses a custom AudioToolbox-based MusicSequencer, with the AKMIDISampler connected as its midiEndpoint. I've tracked the ...
2
votes
1answer
26 views

Save / Analyze output after applying a filter

I'm trying to analyze the amplitude data of an audio file, but I can't seem to find a way to get this data after applying a filter. Is it possible to get the floatChannelData or write the output to a ...
1
vote
0answers
48 views

Runtime errors trying to run a macOS AudioKit app

I'm having a lot of trouble getting a macOS audiokit project to run properly. I've cloned the repo and opened one of the example projects - examples/macOS/HelloWorld. It builds fine, with no errors, ...
1
vote
2answers
49 views

Recording voice while playing music - filter speakers input (iOS)

I am developing an Karaoke app in which you can record your voice while listening to the music. When user uses headphones, everything is great - he can listen to the music and himself in headphones ...
1
vote
0answers
29 views

Save audio files from remote URL and load them locally in AKPlayer

There are arrays of MP3 files on remote URL. What I'd like to try is to temporarily and selectively save them on user's device and play them with Audio Player (I'm experimenting with Audiokit's ...
1
vote
0answers
22 views

Check if midi input or destination is open

It's easy to open midi inputs inputs with AudioKit: AudioKit.midi.openInput(name) And close: AudioKit.midi.closeInput(name) Can't find any way to check if a input or destination is open
2
votes
1answer
66 views

Loading cached remote audio files to AKPlayer on iOS, instead of using local file

So far I’ve been working on a multiple audio playback project using AKPlayers, triggered by AKSequencer to obtain perfect sync, looping and advanced signal processing. It’s been going well, but now I ...
2
votes
0answers
57 views

AudioKit for iOS: Frequency Discrepancy on Simulator vs Device

I am using AudioKit to monitor frequency for a simple guitar tuner application and am experiencing discrepancies in frequency after updating from AudioKit ~4.2 to 4.4, Xcode 9.x to 10, and iOS 11 to ...
1
vote
1answer
37 views

AudioKit's FFTTap gives zeroes on physical device when reinitiated

I am trying to create an app that analyzes FFT streams and compares an original to a subsequent stream. To do this, I need to be able to shut down and reinitiate the stream. On the simulator this ...
0
votes
0answers
16 views

Can I play audio while using AKFrequencyTracker with AudioKit on iOS?

Every time I play audio, either with the AKPlayer built into AudioKit, or with Apple's AVAudioPlayer, the amplitude and frequency values from the AKFrequencyTracker always return 0.0. This is ...
2
votes
1answer
28 views

How to duplicate one stereo channel to the other stereo channel using AudioKit

I am using a Focusrite Scarlett 2i2 into a Mac. The signal into the Scarlett is a guitar. With code along these lines I can get audio into the, app, but it is only the stereo left channel. mic = ...
0
votes
1answer
39 views

Calling random AKPlayers in AKSequencer with repeated random results

This is a multiple audiofile playback project I am currently working on, where multiple AKPlayers are played in a random order, through AKSequencer. First, I have an array of filenames: Let ...
1
vote
0answers
15 views

Q: AudiKit : AKEqualizerFilter does not work properly with iBAction

Well, I am really confused since when I change the parameters and try to start()/ bypass() a node with iBAction, but nothing happens. The oscillator(WhiteNoise) seems to work properly while the Eq ...