Category Archives: Apple

Ableton Link enabled Apps

Here is a list of Ableton Link enabled Apps. Click the title or the icon to open the iTunes page for the app. The prices listed are for the US store and are current right now. Go to the iTunes page for more current info. Of course, the list is always changing. If you have […]

Posted in Apple | Leave a comment

Swift 3 Core MIDI

Swift Language

Swift 3 Core MIDI The Swift 3 betas bring many changes. Here’s an update for Core MIDI based on Swift 3 beta 3. Introduction Some changes Beta 6 changes Summary Resources Introduction Table of Contents There aren’t a great number of changes specifically to Core MIDI; it’s just as awful as it’s always been. Much […]

Also posted in Core MIDI | 12 Responses

MusicSequence via a MIDI Virtual Source

Swift Language

MusicSequence via a MIDI Virtual Source Virtual MIDI sources and destinations are a bit confusing. This is one way to use a Virtual MIDI source. Introduction MIDI Setup MusicSequence Summary Resources Introduction Table of Contents If you want other apps to the “see” your app as a MIDI source, i.e. a producer of MIDI data, […]

Also posted in Core MIDI, MIDI, Swift | Leave a comment

Swift script to create a Cocoa window

Swift Language

Swift script to create a Cocoa window Create a Cocoa window with a functioning button from a command line Swift script. How To Summary Resources How To Table of Contents You probably know that you can run a swift program from the command line like a script.

Previously you had to use this incantation: […]

Also posted in Cocoa, Swift | 2 Responses

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 AVFoundation, 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 AVFoundation, Swift | Tagged , | 7 Responses

Creating an aupreset

Using AU Lab to create an aupreset Just fire up AU Lab. The UI is totally intuitive, amirite? Introduction Fire up AU Lab Add Instrument Changing the Default Instrument Key Range Save Preset File Paths Summary Resources Introduction Table of Contents Here are the steps to create an aupreset that consists of several audio files. […]

Also posted in Core Audio | Tagged , , | 1 Response

Swift 2: AVFoundation to play audio or MIDI

Swift Language

Swift AVFoundation There are many ways to play sound in iOS. Core Audio has been around for a while and it is very powerful. It is a C API, so using it from Objective-C and Swift is possible, but awkward. Apple has been moving towards a higher level API with AVFoundation. Here I will summarize […]

Also posted in Core MIDI, Swift | Tagged , , | 13 Responses

Multiselect UITableView with limited selections

Swift Language

Multiselect UITableView with limited selections Simple example of creating a multi-select UITableView, but allow only a limited number of selected cells. Introduction How to Summary Resources Introduction Table of Contents I wanted a multi-select table view but limit the number of selected cells. The “answers” on StackOverflow were quite awful – which is true > […]

Also posted in Swift | 2 Responses

tvOS Framework Target bug

There be bugs here Getting past the simple project stage with your tvOS app? Maybe you’re putting reusable/common code in frameworks and then linking to them from your tv project. What could go wrong? Introduction The Problem Summary Resources Introduction   Table of Contents So I created an Xcode workspace. Then under Framework & Library, […]

Also posted in tvOS | Leave a comment