audiokit

Audiokit trim audio

风流意气都作罢 提交于 2021-02-19 05:46:05
问题 I'm making audio editing app, and I want trim my audio. For audio editing I use AudioKit framework. But I can't find in tutorials, and examples, how I can trim audio using this framework? 回答1: Export asynchronously allows for setting the start and end samples: https://github.com/AudioKit/AudioKit/blob/master/AudioKit/Common/Internals/Audio%20File/AKAudioFile%2BProcessingAsynchronously.swift#L267 /// Exports Asynchronously to a new AKAudiofile with trimming options. /// ... /// - fromSample:

AudioKit: Problems connecting new input node to mixer

十年热恋 提交于 2021-02-11 14:53:25
问题 I have a function for changing the instruments in our app, at runtime. The intention is to allow for something like "presets" that can change the instrument setup — a little like what you'd see with a "song" file for a DAW. The problem I'm having is that new mixer connections don't seem to be made correctly, so that audio doesn't get from newly added instruments to the output. My overall signal chain could be pictured like: [(Instrument Node -> [Instrument Effects] -> AKBooster)] ->

Play MIDI file together with wav AudioKit

眉间皱痕 提交于 2021-02-07 21:53:18
问题 I'm trying to play a midi file as a wav audio is being played. I've tried with let akSequencer = AKSequencer(filename: "melody") akSequencer.enableLooping() akSequencer.play() But it only plays the first note and nothing else. Also, I'm not being able to use a mixer to mix it with the wav file that it's being loaded like: let akMidiSampler = AKMIDISampler() let akSampler = AKSampler() let wavFile = try AKAudioFile(forReading: wavUrl!) try akSampler.loadAudioFile(wavFile) let mixer = AKMixer

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

点点圈 提交于 2021-01-29 12:29:22
问题 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 in iOS. I am trying to find out if I can determine the state of let's say a Midi Knob, without it sending events? As soon as I start turning a knob I get events - so at the moment in order initialize the system I have to turn every button so it

Why does running build_frameworks.sh fail?

余生颓废 提交于 2021-01-28 03:55:44
问题 Running the build_frameworks.sh script sometimes results in this cryptic error. Why does it do it and how can I fix it ~/Code/AudioKit/AudioKit () ./Frameworks/build_frameworks.sh cat: ../VERSION: No such file or directory Building frameworks for platforms: iOS macOS tvOS Ignoring configuration file 'simulator.xcconfig' because it could not be loaded. Reason: File could not be parsed due to preprocessing errors: The file “simulator.xcconfig” couldn’t be opened because there is no such file. (

Why does running build_frameworks.sh fail?

巧了我就是萌 提交于 2021-01-28 00:04:02
问题 Running the build_frameworks.sh script sometimes results in this cryptic error. Why does it do it and how can I fix it ~/Code/AudioKit/AudioKit () ./Frameworks/build_frameworks.sh cat: ../VERSION: No such file or directory Building frameworks for platforms: iOS macOS tvOS Ignoring configuration file 'simulator.xcconfig' because it could not be loaded. Reason: File could not be parsed due to preprocessing errors: The file “simulator.xcconfig” couldn’t be opened because there is no such file. (

How to reconnect AKPlayer and AKMixer after AudioKit.stop()

一世执手 提交于 2021-01-27 11:30:09
问题 After calling AudioKit.stop() , and then subsequently calling AudioKit.start() , I'm unable to reconnect my AKMixer / AKPlayer to AudioKit. It appears that the engine starts successfully but no sound is produced when I call player.play() . I'm not quite sure what I'm missing. I've boiled it all down to a simple demo project and I've included the most important sections of code below. View controller class ViewController: UIViewController { public let tickSound = MySound(url: "tick.wav")

How to reconnect AKPlayer and AKMixer after AudioKit.stop()

耗尽温柔 提交于 2021-01-27 11:25:49
问题 After calling AudioKit.stop() , and then subsequently calling AudioKit.start() , I'm unable to reconnect my AKMixer / AKPlayer to AudioKit. It appears that the engine starts successfully but no sound is produced when I call player.play() . I'm not quite sure what I'm missing. I've boiled it all down to a simple demo project and I've included the most important sections of code below. View controller class ViewController: UIViewController { public let tickSound = MySound(url: "tick.wav")

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

纵饮孤独 提交于 2021-01-01 01:29:24
问题 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 while singing. Then we have his pure voice recorded and we can mix it with playback. Problem occurs when user does not use headphones. Then we play music via speakers AVAudioSessionCategoryPlayAndRecord and record simultaneously. In final recording we have user's voice and playback from speakers

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

 ̄綄美尐妖づ 提交于 2021-01-01 01:25:35
问题 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 while singing. Then we have his pure voice recorded and we can mix it with playback. Problem occurs when user does not use headphones. Then we play music via speakers AVAudioSessionCategoryPlayAndRecord and record simultaneously. In final recording we have user's voice and playback from speakers