Pre-order The SuperCollider Book!

supercolliderMy colleague and SuperCollider creator, James McCartney, tells me that the long wait for the SuperCollider book is almost over. The book will shortly be released on MIT Press, and may be pre-ordered from Amazon if you can’t wait!

For those not yet indoctrinated, SuperCollider is a special purpose programming language environment for real-time audio synthesis and algorithmic composition used by both researchers and artists. For Computer Science geeks, the SuperCollider language contains object oriented concepts from Smalltalk, and a smattering of functional programming concepts, all rolled into a C-like syntax (checkout these examples).

Download SuperCollider from SourceForge, and checkout a tutorial, as you wait for your copy of the book to arrive.

SuperCollider Screenshot

Bookmark and Share
Posted in Books, News | Tagged , , , , , , , | Leave a comment

Sonic Sculpture

Being a fan of sound synthesis via (digital) physical modeling I am amazed by the Swiss artist Zimoun‘s physical kinetic sonic sculpture:

Swissnex will be exhibiting Zimoun’s works in San Francisco January 22 to February 26th 2011. Contact me if you would like to go together.

Bookmark and Share
Posted in News | Tagged , , , | 1 Comment

A conversation about lockless protocols

I had a conversation with old friend, occasional colleague, future Audio Anecdotes contributor(?), Craig Hansen-Sturm recently about the application of lockless data structures to implement robust, low-latency audio systems.

I can imagine why Craig, freshly hired by venerable sequencer maker Cakewalk, is interested in low-latency audio, but I was surprised to refer him to a list of AudioAnecdotes articles that riff on a simple producer consumer lockless FIFO and its implications for API design, audio latency, sample accurate synchronization, testing for synchronization and dropped samples, and more (linked to google versions of articles where possible):

  • Introduction to the Ring Buffer FIFO Queue (AAv2)
  • Wrapped I/O (AAv2)
  • RampTest: Quantifying Audio Performance (AAv1)
  • Synchronization Demystified: An Introduction to Synchronization Terms and Concepts (AAv3)
  • Synchronization in Film: Birth of the Talkie (AAv3)
  • Sample Accurate Synchronization Using Pipelines: Put a Sample In and We Know When It Will Come Out (AAv3)
  • Dynamic Synchronization: Drifting Into Sync (AAv3)

Ringbuffer over time

Ringbuffer over time

Or my (not so succinct) summary:

1) A FIFO acts as impedance match between a producer and consumer (that is why it is called a buffer (think chemistry)).

2) A carefully designed RingBuffer implementation eliminates the requirement for a mutex thereby allowing the producer and consumer to efficiently access the FIFO without requiring expensive overhead of system calls (thereby allowing these operations to occur much more frequently, potentially enabling much lower latency). Additionally without the mutex the possibility of glitch-producing priority inversions, or worse, outright deadlocks are eliminated.

3) Latency may be dynamically controlled via high and low water marks (essentially controlling how much of the available buffer is actually used).

4) RingBuffer access may be wrapped by elegant POSIX-like blocking-io (those Bell Labs folk left us a wonderful legacy).  This model is both easy for developers to comprehend (less code, fewer bugs and gotcha’s) AND is straightforward to implement via mechanisms like selectable semaphores which transparently work with the OS scheduler to automatically temporarily boost the priority of an unblocked process (say when a FIFO fills past the low water mark thereby unblocking a reading consumer).

5) Issues like underflow, fan-in, and fan-out, may be managed in a well understood and elegant way. For instance quiescent underflow allows intentional starvation to silence and future injection of a synchronized signal later (analogous to the silent leader on an audio tape).

6) Pipelines with understood and constant latency allow for sample-accurate synchronization between streams without requiring any hard-real-time problems to be solved.

This got longer than I hoped.  Read the actual articles and let me know what you think!

Bookmark and Share
Posted in Engineering | Tagged , , , , , , , , , , | Leave a comment

Jamming to my Jambox

Intrigued, and loving my Jawbone Icon bluetooth headset’s support for A2DP (allowing me to listen to podcasts and the like cordlessly), I took the plunge and purchased the Aliph’s latest product, the Jambox battery operated bluetooth speaker as a somewhat expensive indulgence.
Aliph Jambox
I was hoping to use the Jambox with my iPhone to listen to podcasts, TED talks and the like while doing home projects and perhaps answering phone calls on speakerphone. I wasn’t expecting high fidelity, but was hoping for volume, clarity, and decent battery life all of which the Jambox has delivered.

Happily I have been finding more and more uses for the Jambox including publicly jamming to iPhone musical apps (Hexaphone is a new favorite), and providing masking background sounds when traveling.

I am very curious about the relationship between the Aliph Jambox, and the surprisingly similar soundmatters FoxL.

I also want to know the expected behavior when the Jambox is paired with two or more bluetooth i-devices.

Bookmark and Share
Posted in Uncategorized | Tagged , , , , | Leave a comment

David Thiel Pinball Composer

Audio Anecdotes Contributor, Microsoft Research Mentor, Father of Q*Bert’s voice, and good friend David Thiel has, among other things, been composing music and sound effects for Stern Pinball since leaving MSR.

Stern being the sole remaining pinball maker makes David’s gig composing interactive scores and sound effects for pinball machines rather unique.

David recently created a website where he is documenting the meticulous care that goes into each game composition.

Checkout: video of David’s work on Stern’s Pirates of the Caribbean, Family Guy, Spider-Man, Wheel of Fortune, Indiana Jones, and CSI, or audio from NBA Pinball.

Preview David’s Audio Anecdotes article, Retro Game Sound: What We Can Learn from 1980′s Era Synthesis via Google Books.

Stern's Pirates of the Caribbean Pinball Game

Bookmark and Share
Posted in Uncategorized | Tagged , , , | Leave a comment

Full circle

I recently learned that Audio Anecdote’s publisher, AK Peters, has merged with CRC Press of the Taylor and Francis Group. Having started my academic career as a chemical engineer I am of course very well acquainted with the CRC and most famously the Handbook of Chemistry and Physics (known simply as ‘the CRC’).

Working with Alice, Klaus, and the rest of the AK Peter’s family has been a privilege, I wish them all the best in their new venture.

New AK Peters Logo

Bookmark and Share
Posted in News | Tagged , , , | Leave a comment

Coming Soon: AudioAnecdotes on Github

Coincident with [Maker Faire 2010](http://www.makerfaire.com) Steven DiRocco is helping us realize a long-term goal: making AudioAnecdotes code and projects publicly accessible. Real-soon-now you will be able to access and contribute to AudioAnecdotes projects at a [Github repository](http://github.com/AudioAnecdotes)

We will start with the following:

* Content:
* Audio Anecdotes Volume 1, 2, 3
* Example code/demos from the books
* Tour 1, 2, 3
* HTML based explanation of the demos. Refer to the books themselves for details on the algorithms

* Libraries:
* PABLIO
* Portable Audio Blocking I/O: The easy to read/write audio library (inspired by the SGI AL) the examples are written in.

* Tools:
* caliper
* Who needs a GUI when you can have interactive parameter tuning from the command line?

* tbmaker
* The manifest-driven tarball maker we created to automatically build the installation CD

* wxwizapp
* Command-line based util to allow cross platform shell scripts to offer wizard-like GUI via wxWidgets (inspired by the Windows-centric Wizapp)

Bookmark and Share
Posted in News | Tagged , , , , , , , | Leave a comment

Staff at Maker Faire

We are honored to have industry luminaries representing Audio Anecdotes at Maker Faire 2010 this weekend. Please stop by and say hello to:

* Both Days 5/22, 5/23:
* Me, Ken Greenebaum. In addition to creating the Audio Anecdotes books, I am a Digital Video engineer who has worked for [Silicon Graphics](http://en.wikipedia.org/wiki/Silicon_Graphics), [Microsoft](http://microsoft.com), taught at [Digipen](http://www.digipen.edu), and is currently developing Video technologies at [Apple](http://apple.com).

* JC Mitchell Video Industry Veteran has participated in the creation of the LaserDisc, DVD, and streaming video industries at companies including [Pioneer](http://www.pioneerelectronics.com), [LSI Logic](http://www.lsi.com), [C-Cube](http://en.wikipedia.org/wiki/C-Cube), [THX](http://www.thx.com), and Apple. JC is currently at [RGB Networks](http://www.rgbnetworks.com).

* Saturday 5/22:
* Braeden Burns, a veteran of Apple, Microsoft, and Al Gore’s cable network, [Current TV](http://current.com) currently is an Interface Designer at [Vudu](http://www.vudu.com). Outside of work Braeden composes angelic music with midi gear and is an avid reader of [MAKE magazine](http://makezine.com).

* Warren Mansfield is the Technical Director for Consumer Technologies at THX. Responsible for implementing THX features, standards and philosophies into Consumer Electronics products so that they can display the THX logo.

* Peter Vasay is VP of Technical Operations, being responsible for all technical activities, engineering, R&D and testing, within THX with respect to consumer audio, video, automotive as well as professional operations (cinema and screening rooms).

* Sunday 5/23:
* Christian Hresko is a veteran of the mobile device space having developed streaming audio and video for [BREW](http://en.wikipedia.org/wiki/Binary_Runtime_Environment_for_Wireless) while at [mSpot](http://www.mspot.com), and Win Mobile and Android at [Sony Ericsson](http://www.sonyericsson.com). He is currently working on Mobile Game Platforms at the iPhone startup, [ngmoco:)](http://blog.ngmoco.com). Prior to moving to the West Coast Christian developed underwater acoustics and 3D LIDAR visualization at the [http://www.jhuapl.edu](Johns Hopkins Applied Physics Lab).

* Will Perone, a Digipen grad, is a serial entrepreneur and independent game developer who has been developing games since age 11. Will created one of the first social casual games and one of the first virtual currency platforms for Flash. Will’s current venture is a turnkey international multi-platform billing solution for social games, MMOs and mobile games.

Bookmark and Share
Posted in News | Leave a comment

Preparing for Maker Faire 2010

Audio Anecdotes will be returning to Maker Faire this year the weekend of May 22nd and 23rd. More info to follow!

Read More »

Bookmark and Share
Posted in News | Comments closed

Meet us at the 2009 Maker Faire!

Audio Anecdotes will have a table at the  2009 Maker Faire in the Bay Area the weekend of May 30th. Come visit us, meet Audio Anecdotes authors, interact with demos, and participate in new open-source projects.

Bookmark and Share
Posted in News | Leave a comment