Chris Davis
I ❤️ Augmented Reality

Phonique

Phonique is a macOS app for building AVAudioEngine graphs visually. You drag out sound sources, mixers, effects and outputs, wire them together on a canvas, and hear the result immediately.

It came out of a frustration I keep running into. Some APIs hand you a box of components and leave you to assemble them in code, and AVAudioEngine is one of those — connecting sources to mixers to effects to outputs worked perfectly well, it just wasn't any fun, and you couldn't hear what you'd built until you'd built all of it.

The part I'm most pleased with is the export. You can drop buttons onto the graph to trigger things, and then Phonique will write out a complete Xcode project — the audio graph and the UI to drive it — so you can open it and run your app straight away. The visual thing you assembled becomes working code rather than a sketch you then have to reimplement.

That's the trick worth stealing from this one. A tool that only lets you try things out is a toy; a tool that hands back something you can ship is a tool.

There's a longer write-up on Medium: Phonique — a visual AVAudioEngine editor.

Updated October 2026 — being rebuilt from scratch

I've come back to this one more than any other. After the 2017 app there was a Swift attempt in 2021, then a RealityKit and PHASE prototype in 2024, and now a proper rebuild: one SwiftUI app covering Mac, iPad and iPhone instead of the Mac-only original, with a website to go with it.

The part that's grown is what comes out of the editor. The original exported an Xcode project for AVAudioEngine. The rebuild also targets PHASE, Apple's spatial audio engine, so a graph can describe a listener, sources, occluders and reverb in a room rather than just a chain of effects — and still hand you the Swift for it.

It's early. The scaffold is in place and the design is settled; the graph, the editor, the export and the spatial work are each their own phase, and it's roughly a nine to twelve week job from here. So this is a plan with foundations under it rather than something you can download.

Doing it a fourth time is the interesting part. There's a document in the repository that does nothing but record what the 2017 version got wrong, with a file and a line number against each lesson so it can be checked rather than believed. Two of the rules the rebuild runs on come straight out of that — one about never blocking the audio render thread, one about export. Starting again is only worth it if you bring the scar tissue with you.

These are the design, not a build — the app is still being written, so nothing here is a screenshot of running software:

Design for the Phonique rebuild on Mac: a node graph wiring sources through effects to speakers, a node library down the left, an inspector on the right showing an echo's controls beside the Swift it generates Design for the Phonique rebuild on Mac: the Space view, placing a listener and sound sources in a room for PHASE Design for the Phonique rebuild on iPad: the same node graph editor laid out for a tablet

2017 — the original

The Mac app this all came from. It still builds and runs — I rebuilt it on a current macOS last month to go back through what it got right and what it didn't.

Phonique logo The original Phonique: an audio graph wired up in the 2017 interface The original Phonique: the inspector and the generated Swift alongside the graph