July 10, 2010

Adding a full double rainbow alarm to your Android phone

The first thing I thought when I saw Double Rainbow Guy in action was that I really needed this for my alarm clock. Scouring the Internet, I found instructions on how to add new alarm sounds to an android phone: Simply create the directory


/system/media/audio/alarms

on the SD card of your phone, if it's missing, and add an MP3 there. I extracted Yosemite Bear's audio the quick and dirty way, using Wiretap Studio, and now I can't wait for monday morning to come around so I can enjoy A FULL DOUBLE RAINBOW bright and early in the morning to start off the day.

You can get the audio here.

Posted by Claus at 3:32 PM | Comments (0)

November 16, 2009

Making Pd useful with Soundflower

I've been using Pd as a sound environment, generating midi as well as generating sounds, although more of the former than the latter. The main reason for that was that I didn't really have a useful way of getting sound to and from Pd - but I do now, with Soundflower which I don't know why it took till now for me to find.
Add to that the Percolate binaries I just found for Os X - with a lot of granular synth instruments and I have a ton of great new reasons to work with Pd.

Posted by Claus at 8:04 PM | Comments (0)

July 17, 2009

Creating websites with builtin APIs

Whether or not its RESTian kosher I don't know, but the live Apollo 11 transcript is built natively around a JSON API. If you don't like mine - feel free to make your own.

Details: The API is at


http://www.classy.dk/cgi-bin/apollo_transcript.pl?q=transcript&jsonp=somejsonp_prefix

- note the jsonp parameter, which lets you call the api from JQuery and similar libraries without cross site worries. Don't need JSONP. Don't know what it is? just use

http://www.classy.dk/cgi-bin/apollo_transcript.pl?q=transcript

instead. If your javascript api needs the parameter, the doc will explain how to use it.
The output is quite simple: There's a 'now' parameter indicating server time (seconds since unix epoch), time of liftoff in same terms and notes from the log. The item 'current' is the latest transcript item before now. The item 'future' a list of the next events to occur.
The format of the events is an array with four elements: time, an id for the speaker, the actual text and a text representation of the time - relative to 'now'
If you build something using this script, please be conservative in how frequently you call the API - the future item gives you an idea of when it makes sense to call.

If something is unclear just view source on http://classy.dk/moon - which explains in source how to use it with JQuery, and gives tables describing the IDs of speakers.


This way of building websites: Presentation with HTML+CSS+JQuery and a pure API backend really appeals to me. Clearly there are fallback concerns for non-modern browsers etc. etc. but the separation of concerns is appealing - as is the instant availability of an API for other's to use.

Posted by Claus at 3:05 PM | Comments (0)

July 1, 2009

Getting to the Flash developers

It worked wonders for the ARToolkit to be connected to the Flash developer community. Maybe it will work for Arduino and hardware hacking as well - using the Netlab toolkit.

Posted by Claus at 4:49 PM | Comments (0)

June 10, 2009

Plugging the holes in the free Mac video toolchain

It must be a money making scheme - but iMovie won't eat Quicktime video for editing. Annoying way to make money is all I'm saying - fortunately there's an easy workaround: iSquint will compress and convert to MPEG4 - which iMovie will gladly handle. Obvious caveats on quality and compression rates apply.

Posted by Claus at 11:21 PM | Comments (0)