by shanev · 7y ago · 0 comments
The day GarageBand launched, my app went from something like #24 in Music to #64, and downward from there. Fun times!
Interestingly, at an Apple conference sometime in 2010 (either C4 or WWDC), some guy asked me all kinds of detailed questions about the custom audio engine I wrote. Back then the "iPhone SDK" (now iOS SDK) audio APIs had too much latency for a drum app. So I had to write my own in C++ based on Audio Units (a low level C API). A tricky thing I had to do was mix multiple buffers of audio to create the resonance effect drums make when you hit them repeatedly (most prominent in cymbals). Later I found out the person asking me the questions worked at Apple, on the team that made GarageBand. They didn't launch with a blended resonance effect. When you hit a cymbal repeatedly, it would cut off the sound and play the sound again. Ew.
People miss out when they don't try some of the more indie apps. A lot of care goes into making them.
To be fair to Apple here (and this was way before my time, so I'm probably mixing stuff up) - Garageband dates to 2004 with the eMagic acquisition and was (iirc) built on top of the Logic Pro audio engine. And back then, you still had to deal with the raw CoreAudio API (if anyone wants an adventure, try finding the documentation for it... you'll have to generate it yourself!) on MacOS. I recently had to dig through the old CoreAudio mailing list and read a book [1] on the API for low latency stuff, and I'm guessing that in terms of their engine there wasn't much needing change (at least architecturally) to port to iOS. I seem to recall the biggest difference between desktop/mobile versions was the featureset and UI, I think the problem you mention was present even in Logic. You had to get hacky with ES24's key/velocity maps to do what you mention.
From working in the pro audio world for awhile, I've found that other folks in the space just love to talk shop about how they do things. Audio devs are nerds like that. Doesn't always mean people are stealing from others.
[1] https://www.amazon.com/Learning-Core-Audio-Hands-Programming...
Perhaps I'm paranoid but it felt like Apple had purchased some of those private technologies and were wasting my time with a bogus interview prying for information about what I knew of the system before the IP mysteriously changed hands, likely because I had more levels of access to something they wanted to commercialize in the future. I haven't seen anything pushed to market yet but I've seen some semi related products creep up recently.
I toyed with redoing everything in audio units for awhile [2], but the prospect of re-implementing OpenAL's features in audio units to build a complete one-stop audio solution was a bit too much for what time I had available ;-)
Logic Drummer is a killer feature, at least for on-the-grid stuff. Usually the drum parts it generates for me are more inventive and have way more variety than anything I play by hand or program manually.
Sorry to hear about your situation, though.
Is there any "C++ for dummies with a bent for audio processing" material you'd recommend?
Try a clean implementation of that particular logic in pure C# on .NET Core, you should be able to get it working more than adequately fast. I’m saying this as someone that (re)writes applications in C++ and rust to provide pseudo-rt guarantees.
Yikes. If you're doing naive convolution that's O(n^2) in real time.
Try reading up on partitioned convolution techniques via FFT. The current state of the art in FFTs is using FFTW (extremely fast, GPL licensed but a bit tricky to get a commercial license if that is unacceptable) or IPP on x86 (closed source, but works and is fast).
I'd also try looking at Facebook's Two Big Ears code for ambisonic rendering via HRTFs:
I guess it's always an exercise to reveal enough to spark interest but not too much to keep the secret sauce.
[1] https://medium.com/@creaceed/the-making-of-prizmo-5-4006558c...
[2] https://medium.com/@creaceed/drawing-together-behind-the-sce...
I don't understand. GarageBand must have provided users with some of the features your users wanted, so they switched. But how is one app responsible for yours to go from #24 to #64? Shouldn't it have gone from #24 to #25 (with GarageBand in front of your app)?
Does anyone have any more info on this? It's surprisingly hard to find.
> Logic stemmed from Creator, then Notator, made by C-Lab (the company's forerunner) for the Atari ST platform.