Questions tagged [audiokit]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Note and Octave detection using AudioKit

I'm using AudioKit's PitchTap to detect the note played on a guitar through the microphone. I'm doing something similar to the Tune example app of the Cookbook. While I'm getting good results to ...
  • 66
0 votes
1 answer
19 views

iOS, Audiokit: Reclaim audio after App is in background [closed]

I am working on an App (a metronome), which is playing audio in background. I am using AudioKit. It is working fine so far but: Audio is lost after I return from background after using other Apps or ...
  • 1,018
0 votes
0 answers
17 views

A show pressed key on AudioKit Keyboard

I'm studying AudioKit and I don't know how I show on AudioKit Keyboard a key pressed in a MIDI keyboard. In my code I get the MIDI key pressed and show the keyboard, but how can I pass the key pressed ...
  • 222
1 vote
2 answers
152 views

Store slider value in view to global variable

I have several views nested within each other in my Swift program. In the lowest level view, I have a slider. I'd like to pass it's value from this view to the main Swift file where the global ...
  • 85
0 votes
1 answer
39 views

iOS - SwiftUI inside a UIKit View using AudioKit

I'm fairly new to Swift and MVVM, so my apologies if I misunderstand some of the architecture here and say something completely wrong. I have an app written in Swift using UIKit with a main view ...
0 votes
0 answers
67 views

Swift app lifecycle responding to incoming calls

I'm working on an AudioKit app, and have run into an issue with managing the app lifecycle. When I receive an incoming FaceTime call, I would like to be able to update my app state so it can recover ...
  • 83
0 votes
0 answers
19 views

How to give a audio file as a input and perform a filter get the output in a audio file using audio kit?

I am trying to implement a low pass filter to a audio file and get the input as a audio file using audio kit I have tried with live audio from and with that I'm only getting the data using a data ...
0 votes
0 answers
14 views

How to listen to MIDI device change events using AudioKit - iOS

Im developing my own CapacitorJS midi plugin using AudioKit in Swift, to use in Angular. But I have little to no knowledge in working with swift. I have installed AudioKit version 5.6.0. I have ...
0 votes
0 answers
26 views

AudioKit in combination with an AVAudioSinkNode

I'm trying to use an AVAudioSinkNode in combination with AudioKit. In the code below this is the flow: Input > Fader > Output. While the SinkNode gets attached to the Fader. The SinkNode works ...
  • 111
0 votes
0 answers
15 views

CocoPods missing in AUplug in example AudioKit Pro

im trying to run the AU plugin AudioKit Pro example and the cocoPods are missing. I can't seem find them on the AudioKit pro github page either. Using latest Mac OS and latest Xcode. I downloaded the ...
0 votes
0 answers
55 views

How To Read An Audio Buffer Of NSData And Convert To AVAudioPCMBuffer With Microsoft Azure Cognitive Services Speech SDK

I am currently using Microsoft Azure Cognitive Speech SDK to play text to speech. I am able to get the data from the Stream which is provided in the following format (reference): ....
  • 7,187
-2 votes
1 answer
53 views

Is it possible to create 5 oscillators (an array?) working simultaneously and control their frequency and amplitude independently of each other?

import SwiftUI import AudioKit class ToneGenerator { let engine = AudioEngine() let osc = PlaygroundOscillator() init(){ engine.output = osc try! engine.start() } } ...
1 vote
0 answers
37 views

AudioKit 5 -- how to normalize a file to target peak volume like AKAudioFile.normalize used to do

Using AudioKit v5, I need to take an existing file and normalize the volume to a new max level. Looking at older docs, it looks like the AKAudioFile type had a normalized() method that would do just ...
6 votes
0 answers
118 views

Audio Recording Mac app with Visualizations unable to select input device with AudioKit

Hey I wonder if someone can point me in the right direction. I am building a Mac Audio App that I need to perform the following actions Select audio input device Show a live audio graph of device ...
0 votes
0 answers
21 views

AudioPlayer+Playback seek() doesn't preserve stopped/paused player status and always ends up playing. Expected behavior?

When I call seek(time) on a stopped AudioPlayer node, it seeks and then triggers the node to start playing. Is this expected behavior? Looking at the source for seek() it seems that this is the ...
0 votes
0 answers
25 views

Using AmplitudeTap with AudioKit on MacOS?

If I run the following test code, I hear sound, but AmplitudeTap doesn't seem to be called. What am I missing? import Cocoa import AudioKit import SoundpipeAudioKit import AudioKitEX @main class ...
  • 1,421
0 votes
0 answers
58 views

How to modify Engine's output on iOS AudioKit

I want to choose different sound effects to listen to when playing music this is my code: class EffectConductor: ObservableObject, ProcessesPlayerInput { var engine = AudioEngine() var player =...
  • 11
0 votes
0 answers
63 views

mAudioEngine.start() crash in ios

Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: _engine->IsRunning()' Getting crash in iphone 13 mini public class ...
0 votes
2 answers
145 views

Is there a way to create a spectrogram of an audio file using Swift and AudioKit?

I am trying to create a spectrogram, like the one in the image, from an audio file using Swift for a macOS app. I am using AppKit but could implement SwiftUI as well. I cam across audio kit and it ...
1 vote
0 answers
82 views

Crash on initialisation of microphone on iPhone Pro Max 14

I am seeing a new crash in Testflight on iPhone 14 Pro Max (iOS 16.1) devices, it seems to happen consistently and repeatedly on the anonymous user's device, although I haven't been able to get a ...
  • 33
1 vote
2 answers
130 views

#AudioKit Can't add package on Xcode 14.1, Maverick

Can't install package for AudioKit on Xcode 14.1, in Monterey. It is asking for credentials and there is no choice for unsigned packages. Followed these instructions: Using Xcode, you can add AudioKit ...
0 votes
1 answer
55 views

AudioKit v5 - Why does the app crash in the simulator, but not on an actual device?

I have spent some time building a simple synth application. I have imported the following AudioKit packages into the app: import AudioKit import AudioKitEX import DunneAudioKit import ...
0 votes
2 answers
140 views

On Microphone permission in iOS 16 producing screeching noise

I am working on a guitar application written in Objective-C. It has a feature like Tuning from Guitar. The tuning screen requires microphone permission. When we give permission to the app, suddenly ...
  • 156
0 votes
2 answers
77 views

AudioKit v5 - What is the best way to program polyphony?

I am trying to use AudioKit v5 to build a simple synthesizer app that plays a certain frequency whenever a button is pressed. I would like there to be 28 buttons. However, I do not know if I should ...
0 votes
0 answers
53 views

AudioKit v5 - How do I change the waveform of a DunneAudioKit Synth?

I am trying to build a simple synthesizer that will play a MIDINoteNumber using the DunneAudioKit Synth function .play(noteNumber:, velocity:) when a button is pressed. I am able to produce sound and ...
1 vote
2 answers
30 views

AudioKit v5 - Why is the loudness of the DynamicOscillators different depending on which Waveform Table I have set for them?

I am using AudioKit to build a simple music application that plays sound when buttons are pressed. When a button is pressed, I call .openGate() on an Amplitude Envelope that has a Dynamic Oscillator ...
0 votes
1 answer
30 views

iOS Swift - How many UILongPressGestureRecognizers can be enabled at one time?

I have a simple synthesizer application that has 28 buttons (UIView's), and each one has a UILongPressGestureRecognizer attached to it. The .minimumPressDuration for each recognizer is set to 0, so ...
0 votes
0 answers
22 views

AudioKit v5 - Why is the audible 'Release Duration' longer than the Amplitude Envelope's programmed Release Duration?

Using the AudioKit Cookbook as a reference, I am trying to build a simple application to test AudioKit features before building a larger application. There are 2 buttons, 2 oscillators, 2 amplitude ...
0 votes
0 answers
21 views

AudioKit's MIDISampler ignores Release Time option of SoundFont loaded

I use AudioKit 5 for iOS and want to play MIDI files (or single MIDI events) using sound fonts, but I hear that MIDISampler or AppleSampler ignores Release Time option of Sound Font. The option is ...
0 votes
1 answer
101 views

How best to force an observable object to update

My App taps the iPhone inbuilt microphone and uses the frequency detected as a tuner. The tuner is an observable object which needs to be mocked for testing. I have set up a protocol to be able to ...
  • 11
0 votes
0 answers
37 views

Audiokit: Visualise DSP level stuff in UI (swift) level

Let's say that I have a custom perlinNoise() running inside the process()of a OscillatorDSP making some modulation and I want to visualise the noise in the UI with a graph. How I grab the data from ...
1 vote
0 answers
89 views

Has recent update affected genData in AudioKit?

*** Update 2 *** Ok, done some more digging and managed to get things working with MIKMIDI by starting at position 1 rather than position 0; the same fix hasn't worked with AudioKit. Further, I've ...
0 votes
2 answers
270 views

How to play two audio files at once with Swift using AudioKit

I have two short wav audio files that I'm trying to play at the same time. Using AudioKit, I have an AudioEngine(), and I'm assuming I should use a MultiSegmentAudioPlayer() as the output along with ...
3 votes
0 answers
408 views

XCode 14 SwiftUI dyld symbol not found

I get this error when I run my code on an iOS 14 device using XCode 14. dyld: Symbol not found: _$s7SwiftUI15GraphicsContextV4fill_4with5styleyAA4PathV_AC7ShadingVAA9FillStyleVtF Referenced from: *****...
1 vote
0 answers
25 views

AudioKit errors out only on real device

When I try to run my app on a real device I get the following error: "...AVAEInternal.h:109 [AVAudioEngineGraph.mm:2054:InstallTapOnNode: (err = AUGraphParser::InitializeActiveNodesInInputChain(...
  • 45
0 votes
0 answers
38 views

FormatConverter from .wav to .m4a

I´m working on an app in which I need to upload an audio file to a remote server. So far the recording and file creation part is working fine, the problem is that the resulting audio is a very heavy ....
0 votes
0 answers
28 views

How to make audiokit polyphonic node using STK physical models?

I have been looking for a way to convert STK physical models to audiokit polyphonic node. There are examples inside Audiokit repo, but complete process of triggering the notes are getting complex. If ...
0 votes
1 answer
54 views

Create polyphonic dsp node in audiokit 5

I am searching for the resources to create a polyphonic dsp node in audiokit 5, so that I can connect and use it with AudioEngine. For c++ dsp, I am using faust. AudioKit with faust single voice node ...
0 votes
0 answers
63 views

An example MIDI Channel Message to change Instruments

Can someone provide an example of a midi channel message that would set the instrument to be a piano? This is how I currently try to set the instrument for the channel, but it doesn't seem to be ...
  • 45
1 vote
0 answers
57 views

Unable to playback a Midi File

I am trying to create and playback a sequence of MIDI, notes. However my player does not get created properly: func filePathReturn() -> NSURL{ let fileMang = FileManager.default var ...
  • 45
1 vote
1 answer
119 views

Confused about the usage of AKSettings

I am quite new to iOS programming, SwiftUI and our beloved AudioKit, so I ran into a problem that seems impossible to solve - but maybe is an easy newbie thing for you more advanced developers. I need ...
  • 13
1 vote
1 answer
65 views

Choosing a sampler

over the past week or so I’ve been trying to find a workflow for original sample generation to eventually be used in an audiokit app, obviously at some point Im going to have to decide which of ...
1 vote
0 answers
70 views

How to observe events and functions from MIDIClockListener and MIDIBeatObserver?

I am trying to use the MIDIBeatObserver/MIDIClockListener class in AudioKit 5, so I can sync MTC, realtime messages and Bars/Beats time code from Logic Pro to my app (Swift / Xcode 13.4.1). However, I ...
  • 189
2 votes
1 answer
46 views

Stopping a `CallbackInstrument` prior to setting `AVAudioSession.setActive(false)`

In attempt to pause my signal chain when a user puts the app into the background, or is interrupted by a phone call, I am trying to handle the interruption by stopping all playing nodes and setting ...
  • 1,107
0 votes
0 answers
62 views

Is there a way to playback a sequence of notes using noteon/off?

I am making an app that requires playback of a sequence of musical notes, however, use of in-built midi control in swift yielded disappointing results, since for some reason MIDIChannelMessages are ...
  • 45
0 votes
0 answers
42 views

iOS Audiokit FFTTap BufferSize Exception Error

I am trying to use fftTap from iOS microphone with AudioKit, and here is the code fft = FFTTap(highPassFilter2!, bufferSize: 8192 * 4, fftValidBinCount: nil, handler: {data in}) I tried using a ...
1 vote
0 answers
208 views

Using an Audio Library in a Flutter project?

I'm considering building my app with Flutter because of the attractive cross-compilation features, native feel, and speed of development. I need to use an advanced audio processing library to be able ...
0 votes
1 answer
180 views

AudiKit AKPitchShifter & AKTimePitch Pitch Correction

I'm trying to get an autotune like sound from AKPitchShifter but the most I get is chipmunk type sound. I've played with different combinations with the AKTimePitch.pitch and the AKPitchShifter.shift ...
1 vote
0 answers
55 views

Use AudioKit Node to AVCaptureSession as audio inputs

I'm developing app for sound effects. I use AudioKit and I got a needed result for recoding voice. Now I want to add sound effect to voice while video is recording. I can record video with default ...
0 votes
1 answer
46 views

How to do a program change in AudioKit?

I am usind AudioKit's MIDISampler to play some notes. I use a soundfont with a lot of instruments. After studying the documentation and the source-code, I did not find a way to do a program change in ...

1
2 3 4 5
19