May 25, 2008


I few months ago, I wrote a simple commandline utility demonstrating how to use the WiiRemote Framework to connect to the Wii controller and capture events. Inspired and enabled by the darwiin-remote project. I just wanted something simpler to use as a starting point for my own projects.

This code is written using (and includes) the svn repository WiiRemote Framework 0.6 code.

Output is sent to stdout for all wii remote messages. Output to stderr for all other "informative" messages. This allows for easy use of unix pipes.

How to:

Build using xcode. Open a Terminal, type (without quotes)
  cd [where you put wii2stdout]
then follow the instructions. When the wii remote is connected, you will see lots of accelerator events.

Press the "home" button to exit wii2stdout cleanly.

If you use it, drop me a line & let me know. Grab the code here:

Music/Midi & Mac Update

A comment on my earlier post reminded me that I should publish my latest Midi code.

I've updated my code a bit in the (gasp) 3 1/2 years since I posted that original code. In the meantime, I've taken to using a client/server model. It turns out that GarageBand doesn't seem to take kindly to a midi connection appearing and disappearing often. So, the server is started once per session and keeps the midi connection alive. The client connects over a socket to the server and translates from text input to a simple protocol. The client can appear & disappear without affecting GarageBand.

As a disclaimer, this is not my prettiest code--it basically works but is not all that robust. Get the code at

If you use it for anything, drop me a line or a comment to let me know.