Category Archives: AVFoundation

Multi-timbral AVAudioUnitMIDIInstrument

Swift Language

Multi-timbral AVAudioUnitMIDIInstrument in Swift Table of Contents Introduction Core Audio Unit AVFoundation Unit Summary Resources Introduction Table of Contents There is one sublcass of AVAudioUnitMIDIInstrument provided by Apple – the AVAudioUnitSampler. The only problem is that it is mono-timbral; it cannot play more than one timbre at a time. To create a new AVAudioUnit, we […]

Also posted in Core Audio, Swift | Tagged , | 9 Responses

The Great AVAudioUnitSampler workout

Swift Language

The Great AVAudioUnitSampler workout Table of Contents Introduction Sampler from SoundFont Sampler from aupreset Sampler from sound files Multiple voices Summary Resources Introduction Table of Contents Little by little, AVFoundation audio classes are taking over Core Audio. Unfortunately, the pace is glacial so Core Audio is going to be around for another eon or so. […]

Also posted in Swift | Tagged , | 7 Responses

AVFoundation audio recording with Swift

Swift Language

Swift AVFoundation Recorder Use AVFoundation to create an audio recording. Introduction Creating a Recorder Recorder Delegate Recording Summary Resources Introduction AVFoundation makes audio recording a lot simpler than recording using Core Audio. Essentially, you simply configure and create an AVAudioRecorder instance, and tell it to record/stop in actions. Creating a Recorder The first thing you […]

Also posted in Computer Music, Swift | Tagged , | 30 Responses