Archive for the 'TapeDeck' Category

I suppose I should have blogged this sooner, but on Friday I released TapeDeck 1.1 with some exciting new sharing features.

The YouTube export feature was especially fun to add. It took quite a bit longer to develop than I originally thought it would, mostly because I had to do fight with QuickTime and YouTube to get a suitable video format. In many cases, it took about a half an hour to wait for YouTube’s servers to finally tell me that my videos could not be processed!

Once I got that sorted out, I had to work extra-hard to shrink down the animated tape video track so that users wouldn’t have to wait to upload huge video files for short audio recordings. In some cases, I had video files that were 50MB at the end of the rendering—not pleasant if you have a lousy upload rate.

In the end, I’m very happy with how the feature turned out. I’m sure we’ll see some really cool stuff on YouTube made with TapeDeck in the future.

TapeDeck’s new import/export feature (which lets you import/export to a multitude of audio formats) is also powered by QuickTime, but it only took about a week or so to implement, including testing. I must send an extra shout-out to Mike Ash for publishing his straightforward QuickTime code to CocoaDev. That certainly helped the medicine go down…

In addition to the above, we also kicked up the highest recording quality to 320kbps. Looking back, I can’t really recall a solid reason for limiting the highest quality compressed AAC recording to anything but the maximum that the APIs would let us capture to. So, problem solved!

Finally, I went through and fixed a great deal of little annoying bugs. One of which was the lack of a scroll indicator to show where you are in your list of tapes. I tried to make it look similar to the one on the iPhone, but didn’t go overboard with it (e.g. it doesn’t increase in height depending on the size of your tape library, nor does it shrink when you hit the extents of the library).

Anyway, get over to the TapeDeck website if you haven’t already, and give it a whirl. I’m sure you’ll have fun with it.

Now that I’ve got TapeDeck 1.1 out the door, I need to do a few easy fixes for some harmless bugs, and then give FuzzMeasure some much-needed love again.

I’m pretty confident with TapeDeck 1.1 at this point, and I’d love for folks to try it out in advance of the official release.

I added the following features for TapeDeck 1.1, and would like to hear what you think about them:

  • Upload to YouTube. Share your recordings with the world, without leaving TapeDeck. (example)
  • Import from MP3, AIFF, and others. Using QuickTime, TapeDeck can now import audio files of various formats.
  • Export to AIFF, MP3(*), and others. TapeDeck can now also export tapes to various formats for emailing to colleagues on other platforms, or for use with other audio editing tools.
  • Higher Quality Recordings. You can now record audio at up to 320kbps in HQ mode.
  • Bug Fixes. Unlike Apple, we plan on detailing what this means later (when I get a chance to work on the real release notes). If you filed a bug in the past, and don’t see it corrected, be sure to let us know.

Updated (8/13/08 5:18 PM EST): You can grab your copy of TapeDeck 1.1b3 from this link: http://s3.amazonaws.com/tapedeck/TapeDeck-1.1b3.zip.

Please send all bug reports to support@tapedeckapp.com.

* You must download and install the LAME QuickTime Component for MP3 exporting to work. I found my copy of it here: http://karaoke.kjams.com/wiki/index.php/Lame

I’m pretty stoked about releasing TapeDeck 1.0.1 today. It contains some huge audio code overhaulin’ that I started about a week before we shipped 1.0…

Just before we shipped TapeDeck, I noticed there was some utterly horrible skipping during audio playback. I attributed the skipping to a small jump in our CPU usage, right after adding the new Core Animation-powered HUD. It was so bad that TapeDeck was nearly unusable. This caused me to spend a 12h day rewriting our audio playback code (in a branch!).

The new code followed Apple’s recommendation for high-performance glitch-free audio playback. So I created a separate high-priority feeder thread reading chunks of a file’s audio data into a ring buffer that was consumed on the high-priority AU render thread.

I was about 80% done this rewrite when I realized that it was a different bug that caused this unbearable skipping to occur. I don’t recall the specifics, but I think I was re-seeking the file accidentally when some unintentional extra KVO updates got triggered. It was caused by the new HUD changes I checked in—are you surprised? :P

Content with the performance of the audio engine on my test systems (an 8-core Mac Pro, and a PowerBook G4 1.5), we shipped TapeDeck. Unfortunately, it still wasn’t perfect. I got reports that recent MacBook Pro machines were also experiencing the skipping, and some more heavy-duty testing on my PowerBook G4 was causing the skips to show up more often.

Well it was a good thing I kept the rewritten audio engine in a branch! I merged that branch with what we released in 1.0, and completed the last 20% of the rewrite. TapeDeck 1.0.1 contains this new, more efficient playback engine which should take up slightly less CPU time, and skip a lot less frequently (never say never!).

Unfortunately, I can’t say that the skips in playback are completely gone on my PowerBook G4 when you heavily load the system (I was able to get a few skips while doing compiles in Xcode), but they’re greatly reduced. On the other hand, I am unable to get TapeDeck 1.0.1 to skip on my wife’s MacBook Pro, even when pushing it pretty hard by browsing our very large collection of RAW photos in iPhoto—an operation that brought TapeDeck 1.0 to tears.

Anyway, this was the fix that required the largest effort in TapeDeck 1.0.1. I hope it solves the skipping problem completely for our users!

In late September 2007, Dan Sandler had started egging me on to develop a simple audio recorder. I was well within shipping mode for FuzzMeasure 3.0, and couldn’t do much more than talk about it at a high level.

In late November 2007—just before FuzzMeasure 3.0 shipped—Dan and I started talking more seriously about this simple audio recording application that just had to be written. Wrap up the Audio Queue Services API in Objective-C, add a great UI to aid in collecting the tapes, and it shouldn’t take very long at all, right? :)

By mid-December, Dan had some UI sketches which resemble what TapeDeck looks like today. There’s a ‘current’ tape in the player, some cassette recorder controls, and a list of tapes in a box. I had already built a prototype recorder by this point, complete with a tape, rotating spools, and an audio level meter. It looked nothing like the application we shipped. You could record audio straight to m4a files, and it worked fine. Effectively, at this stage, we were running Apple’s sample code with a UI on top.

Over the holidays, I spent a few days implementing the nuts and bolts of the early UI prototype. I wrote the UI a few times using Quartz, then Core Animation, then Quartz again. I probably wrote the bits that rendered the tape and its labels three times during this period.

In January, I had been busy with my job, and planning to leave (because FuzzMeasure was doing great, and I thought we had a real winner on our hands with TapeDeck). However, in every spare moment I could get, I would squeeze in fixes for FuzzMeasure, and code for TapeDeck. It was during this time that I decided I should get started on writing MP4 tags to the recorded files.

This was an extremely complicated undertaking, since Apple doesn’t provide an API to modify metadata on M4A files! So, I ended up writing an entire Objective-C library that is capable of parsing, and manipulating MP4 atoms (or boxes, depending on who you talk to), with the addition of the magic bits of metadata that work in iTunes. This was a very difficult piece of the TapeDeck puzzle, and it was fun to get working!

In early February, I left my job to work on SuperMegaUltraGroovy full-time. I spent some quality time with FuzzMeasure, cleaning up some bugs, and took a bit of a vacation from TapeDeck work.

By late February, Dan had sent me a mockup that looks very much like what we see today in the shipping version of TapeDeck. Initially, I wondered how on earth we would implement this–custom UI code, custom window drawing, etc. It seemed like a nightmare, but I put my head down and went for it.

Throughout March, Dan worked on our type logo for TapeDeck, and refined our plastic cassette rendering. I had the UI starting to look very much like the prototype at this point. Lots of work was done internally to support the box of tapes, and manage the collection with Core Animation–the UI that was written over the holidays was reworked again!

In early April, I had started playing with the speaker grilles. In order to really get the look of a cassette recorder right, there had to be speakers above the area where the tape sits. We had a few mockups with the speakers sitting somewhere between the tape and the controls, but once I drew up the grille pattern you see today, we had a winner. When the tape box was closed, TapeDeck really looked like a cassette recorder. Also, adding height meant the user could see more tapes at a glance, which was a nice end result.

By mid April, TapeDeck looked very much like TapeDeck 1.0 does. We were tweaking all sorts of the UI, and finishing off the functionality. The Design Awards deadline was announced, and I openly wondered if we could ship on time. I figured we might as well go for it, because external schedule pressure is always effective to maximize my use of time. :)

During this period, I got to the part where we wanted to implement seeking and FFWD/REW functionality. This is where my use of Audio Queue Services had to end. We wanted our tapes to play very quickly when seeking through the tape (in both directions!), which meant we had to do some trickier things within the audio stream. So, I took a week to rewrite the audio playback engine so that we could support full FFWD/REW functionality, as well as the accurate seeking of the audio stream.

I also decided that we really had to render an accurate image of the tape in the album art of each m4a file. This was an interesting thing to pull off using Core Animation, but the results were amazing when it was done.

In late April, TapeDeck began its beta. Tons of feedback came in, and we actually added the pause functionality in response to user feedback. I was coding at an amazing level of efficiency during this time.

Dan sent a mockup of a new HUD layout (recording and playback controls) to me on Friday, May 3rd, and I didn’t receive it until I woke up on Saturday, May 4. When I went to bed that same night, I had implemented the entire thing from the ground-up using Core Animation, borrowing bits of code from the old HUD. A great deal of this incredible implementation speed is due to Dan’s amazingly detailed mockups. He had effectively written a full specification with clear instructions about how each component would behave, alongside the detailed drawings.

In the last stages of the beta, tons of little bug fixes went in, and smaller aspects of the UI were cleaned up. Dan quickly put together our launch website, and threw a little easter egg into TapeDeck. We were smoking towards completion, and by May 8th I felt we’d done the impossible - we made it to 1.0!

I sent a copy to a few key folks in the media, and they all seemed to really like it! From there, the launch has just been incredible. We’re getting a lot of really positive feedback about TapeDeck, and we’re very proud of what we’ve done. You will find a tally of our media coverage in Dan’s blog post about TapeDeck 1.0.

From our press release:

TapeDeck is a new audio recorder exclusively for Mac OS X 10.5, designed with a quick-capture workflow in mind. You’re never more than a single mouse click (or keystroke) away from making a new recording, which are called, unsurprisingly, “tapes.” TapeDeck records directly to compressed MP4-AAC audio, making it equally useful for quick high-fidelity samples or hours and hours of lecture.”

I worked on TapeDeck for the past 6 months with Daniel Sandler, a friend I once worked with at Be, Inc back in ‘99/’00 (well, our tenures overlapped—I was an intern on the networking team and he was a full-time UX designer/coder. We’ve kept in touch ever since, and Dan’s even provided a lot of feedback for FuzzMeasure over the years.

Late last year we agreed this application needed to be written—a very simple, useful audio recorder that leverages Core Animation for the Zing! and Pop! you expect from Leopard apps today.

I am very proud of the things I was able to pull off in this application, and plan to write some blog posts about the long (well, it felt long) road to TapeDeck 1.0. After this endeavor I have learned an incredible amount about Core Animation, Core Audio, and became very intimate with the internal details of M4A files.

So, check out TapeDeck and let us know what you think! I hope you enjoy it as much as we enjoyed writing it!