So, Swift 1.2 was recently released, with lots of changes, mostly for the betterfootnote 1, including fixing several things mentioned in previous articles. Life on the bleeding edge… but, incremental compilation has arrived, so build types are drastically improved in most cases. Error messages are frequently more helpful. Default parameters don’t break trailing closure syntax. And of course there are many other fixes, and a bunch of exciting new things to play with.
Update: A few parts of this post are affected by Swift 1.2. Once it’s out of beta, I’ll do a rewrite to reflect the changes, but in the meantime, I’ve collected the updates together at the end.
Here’s another little toy I’ve been using in Swift. Essentially, it’s a wrapper around dispatch_after() that defers execution of a block of code for a given amount of time. Except that if, when it goes to execute the block, you’ve already scheduled another, it throws the first away:
It’s been quiet for a while here at Wooji Juice: a few small app updates (Mitosynth and Hokusai both have updates currently either in testing or App Store review), but most of the work is happening behind-the-scenes on R&D.
That includes getting to grips with Swift, Apple’s new programming language. It came out back in June at WWDC, and has seen some updates since. So how is it?
Mitosynth 1.2 is now available! Mitosynth remains iOS 7 compatible, but some new features do require iOS 8. Here’s the quick overview of what’s new:
- Automation Step Sequencer
- Pitch & Note Tracking
- MIDI Program Change & Patch Bank mappings
- MIDI Polyphonic Aftertouch
- iPhone performance mode enhancements
- iPhone 6/6+ screen size extensions
- 20 new built-in patches
- iOS 8: IAA Transport Controls
- iOS 8: Bluetooth MIDI Configuration
- iOS 8: Import & Export audio using File Providers
- iOS 8: Audio Plugin support
- iOS 8: Finger-angle sensitivity
So, I’ve been doing some experimentation, and it turns out, one of the new features Apple announced for iOS 8, “Extensions”, seems to work pretty well for implementing audio plugins.
What I mean by that, is allowing one app to add audio commands directly to another app. Note that these are offline commands, rather than realtime ones — Audiobus, Core MIDI and Inter-App Audio are the way to send live audio or MIDI around. But for apps that can do destructive edits to audio, this is pretty nifty. Or even for apps that don’t edit audio at all, but have an audio library.
Since Mitosynth has received a lot of comments regarding its design, I thought it might be nice to look how at that evolved over the course of development.
iOS apps are an interesting design challenge. On the one hand, you have excellent high-res screens, a relatively powerful GPU, and graphics & animation APIs that are for the most part excellent to work with (and probably better than any other platform I’ve developed for). And touch-screens invite direct manipulation, and there’s lots of scope for doing interesting things with multitouch.
Mitosynth 1.1 has been released to the App Store. So what’s new? Quite a bit! The headliners for most people will likely be:
- Inter-App Audio support
- New Wavechamber modes: Painter and Gridcøre (see below)
- Audiobus State Saving (stores which patch was in use)
- Package creation
- 20 more built-in patches, from freaky noises to synth basics
- A bunch of extra scales (and you can transpose them into different keys)
One of the things that makes Mitosynth super powerful is the way you can automate dials. Mitosynth’s automatable dials have a bunch of different modes, and almost all of them have Min and Max dials which set their range.
Probably the most common use is to set the amplitude of an LFO: if you put a dial into Sine mode, then set the Min to 0% and the Max to 50%, you’ll get a nice smooth sine wave oscillating between 0% and 50% just as you’d expect:
Mitosynth is currently in beta testing, and it’s going really well. The testing team has been fantastic: I think Mitosynth has already seen more hours of external testing than any of our previous apps, with lots of useful bug reports and feedback.
Pretty much everything is nailed down now, from the features to the manual. I want to add some more built-in patches, and let the testers hit it with sticks some more, to see if anything falls out. If something breaks, fix it, rinse and repeat — but I feel like it’s getting close to being submitted to Apple.
Wooji Juice’s new synth, Mitosynth, is almost ready for beta. It’s “feature complete”, and while there’s plenty to do yet — writing the manual, polishing the UI, adding patches to the library, that kind of thing — everything I want to see in v1.0 is done.
So, it’s time to put out a call for beta testers! If you’re interested in beta testing Mitosynth, there’s some things to bear in mind: