Category Archives - MIDI

IB – User Defined Runtime Attributes

December 20, 2015 12 Comments

Working on my MIDIChimes application, adding a piano-type keyboard UI, I happened to notice a section in the Interface Builder Identity Inspector I’d always glossed over before — the “User Defined Runtime Attributes” section (I’m

CoreMIDI and Memory Leaks

December 18, 2015 12 Comments

I recently wrote a “MIDIChimes” app that sends note-on and off somewhat randomly for a given set of notes. I noticed a memory leak, investigated, and after many hours of poking at it finally plugged

GCD – Accurate Enough for MIDI?

December 6, 2015 12 Comments

I’m not familiar with either GCD or high precision timers on the Mac (I don’t currently write code for iOS but I’m sure it’s similar). Since I’m working on MIDI code, this means I’m going

MIDI – Swift to Objective C

November 28, 2015 12 Comments

A month or so ago I started playing around with MIDI and Swift, and immediately became disenchanted with the way one has to deal with the C-isms of CoreMIDI. Correct me if I’m wrong, but

Binding MIDI Outputs

November 21, 2015 12 Comments

This took quite awhile to figure out. At first I tried and failed to use a mutable dictionary, then gave up and went with a mutable array of OutputPort.
class OutputPort: NSObject {
let source: