audiokit

How to build an oscillator with an envelope on its frequency/pitch in Audiokit?

冷暖自知 提交于 2019-12-23 15:26:43
问题 I am new to Audiokit and I try to build a synth where I can route an AD-Envelope to different parameters, like frequency of an oscillator etc. To me it seems that it only is possible to solve this on a DSP level. I found out that the AKxxxOscillatorBanks are ADSR'ing the volume and I might have to use this part of code to "apply this only to the pitch". So it seems that I just have to script a "new bank type that does the ADSR over other kinds of parameters". As I want to have full controll

Cropping MIDI file using AudioKit

▼魔方 西西 提交于 2019-12-23 13:20:14
问题 I am trying to crop and loop a certain part of a MIDI file using AudioKit . I am using a sequencer and found a couple of things that are close to what I need, but not exactly. I found a method in AKSequencer called clearRange . With this method I am able to silence the parts of the MIDI I don't want, but I haven't found a way to trim the sequencer and only keep the part I am interested in. Right now only the part I want has sound but I still get the silent parts. Is there a way to trim a

AKFFTTap stops working when initialized second time

﹥>﹥吖頭↗ 提交于 2019-12-22 22:22:26
问题 This is a continuation of the discussion in here. I'm building a voice recorder app for iOS in Swift, and I have a custom waveform graphic that I feed data to from a AKFFTTap object. I had a problem that the FFT starts generating all zeros after a while. In order to diagnose and solve this, I'm trying to re-initialize all the nodes and taps whenever the user starts recording (assuming that would solve the issue). Previously, AudioKit was initialized and started when the view was loaded, and

How can I get AudioKit to stream an audio file from a remote URL?

被刻印的时光 ゝ 提交于 2019-12-22 19:12:13
问题 I'm trying to play audio files from URLs in an iOS app (Swift 4). I'd like them to buffer and play while downloading. And I quite like AudioKit, but for the life of me and I can't figure out how to make it read remote files. Any suggestions? 回答1: You can't find it because its not there. We've never implemented any streaming functionality. It could be added though, and a number of people like yourself would be quite pleased. Consider contributing some code if you manage to work it out. We can

AudioKit - Issues getting specific frequencies (above 20kHz)

纵然是瞬间 提交于 2019-12-22 11:13:25
问题 I got a small problem using the AudioKit framework: ----> I can't get the AudioKit framework to pick up special frequencies above and below a specific amount. ( frequency below 100Hz & above 20kHz ) Edit: I've tested some frequency-tracker apps on my iOS device combined with some online-tonegenerator tools to check if my iPhone microphone is able to pick up those frequency above 20000Hz... And it is. But using the default frequency tracker code snippets: Frequency above 20000Hz can not be

Trying to combine 2 Audiokit examples: MicrophoneAnalysis and Recorder: crashes when I hit record

前提是你 提交于 2019-12-21 03:51:15
问题 I am trying to combine MicrophoneAnalysis and Recorder examples. It keeps crashing at the line try recorder.record . 2018-01-08 21:21:48.507019-0800 Music Practice[90266:18761122] [avae] AVAEInternal.h:70:_AVAE_Check: required condition is false: [AVAEGraphNode.mm:804:CreateRecordingTap: (nullptr == Tap())] 2018-01-08 21:21:48.527443-0800 Music Practice[90266:18761122] * Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: nullptr ==

AVAudioEngine.connect crash on hardware not simulator

点点圈 提交于 2019-12-20 02:27:29
问题 var engine:AVAudioEngine! var format = engine.inputNode.inputFormat(forBus: 0) engine.connect(engine.inputNode, to: engine.mainMixerNode, format: format) in function AVAudioEngine.connect make my app crash only on hardware but in simulator it's fine. When I run on hardware it's error says. Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: IsFormatSampleRateAndChannelCountValid(format)' terminating with uncaught exception of type

Why can't I control the Apple macOS Speech Synthesis audio unit with slider values?

与世无争的帅哥 提交于 2019-12-19 17:34:24
问题 I'm working to incorporate Apple speech synthesis audio unit stuff (works only on macOS, not iOS) into AudioKit and I've built a AKSpeechSynthesizer Class (initially created by wangchou in this pull request) and a demo project both available on the develop branch of AudioKit. My project is very similar to this Cocoa Speech Synthesis Example but on this project, the rate variable can be changed and varied smoothly between a low number of words per minute (40) up to a high number (300 ish).

AKFFTTap stops generating data after some time

耗尽温柔 提交于 2019-12-19 11:35:49
问题 I'm using AudioKit for a recorder app, and I added a AKFFTTap to the AKMicrophone for drawing a custom audio waveform. This all works well, but after several recordings, or after some time passes with the app recording screen open, the FFT data suddenly becomes all 0. I know the mic is working and the gains don't change, since the recorded file contains the expected audio. It seems like just the FFT tap stops working all of a sudden. Anyone have any idea why this is and how can I solve it?

AudioKit ios AKSamplerMetronome

六月ゝ 毕业季﹏ 提交于 2019-12-17 16:39:32
问题 I'm currently using AudioKit's AKSamplerMetronome to generate and play Metronome sounds , now I need implement an callback to get current beat suppose If I'm having 5 beats I need to get current beat that is being played so that I can add some more functions based on the beat count , is there any callback available to achieve It ?? This is my current code // using AKSamplerMetronome var metronome1 = AKSamplerMetronome() var mixer = AKMixer() // first sound called let beatstart = Bundle.main