Fun with Quartz Composer in Snow Leopard and the ³ÉÈËÂÛ̳ Radio Schedule
comes as part of on . It is described in as 'a node-based visual programming language'.
I think the easiest way to understand it, is it lets you plug things into other things to produce very cool things, without the need to write a single line of code. These things are called patches and provide a whole library of them (even more in ). These patches wrap low level functionality in them like , , , , Apple Remote Access, Midi, XML loading and parsing etc, without you needing to understand the underlying technologies. You can also write your own patches including the ability to incorporate to effect the patches results. A patch is like a function, you pass it some information and it returns results, without you needing to care what happens inside.
So, with all these patches, you create a composition, which is a file with a .qtz extension. Here's an example of what a composition looks like:
A composition can be ran stand-alone, exported as a movie, or used in a . It can also be used as a Screen Saver or visualization simply by dragging it into the correct folder on your Mac. A patch can also be nested in a patch, so as you can imagine the compositions can get quite complex.
One of the limitations of the initial version of QC was that you could only load and not arbitrary XML. Luckily this had been addressed in the new version, so as well as all the other awesome new patches, there's one that lets you provide a path to some XML, and handles downloading and parsing into a structure, as well as download progress information and a flag for when the data is ready.
With this new functionality as well as other new patches, I have created a composition that rolls through the ³ÉÈËÂÛ̳'s National Radio networks and displays who is currently on air, as well as downloading and displaying the network logo and a pretty image for that show. Here's a screen grab:
You can download the composition here:
To install you need to:
- Make sure you are running OSX 10.6 (It won't work otherwise)
- Unzip the downloaded file
- Move the ³ÉÈËÂÛ̳ Radio Now.qtz file into your Screen Savers directory.
/Users/<username>/Library/Screen Savers
- NOTE: You may need to create the Screen Savers directory if it doesn't exist
Now you can go to the Screen Savers settings page in system preferences, and you will be able to choose ³ÉÈËÂÛ̳ Radio Now from the left hand menu. You can also adjust the duration in which the radio stations are switched via the options tab. Oh and remember, if you're not connected to the internet then you won't see anything.
Disclaimer: I made this as an unsupported demo for my own learning. If you find any problems and fixes, please post them in the comments
Comment number 1.
At 8th Oct 2009, Mo McRoberts wrote:This is very nice indeed. I currently have it as my screensaver :)
Complain about this comment (Comment number 1)
Comment number 2.
At 11th Oct 2009, Cherry Hinton Blue wrote:This is really good - nice one! However, it does show me what was on an hour ago (and I'm on normal UK time).
Complain about this comment (Comment number 2)
Comment number 3.
At 14th Oct 2009, whomwah wrote:@CherryHintonBlue, I have just uploaded ³ÉÈËÂÛ̳RadioNow1.1.zip which you can download from above. I made a schoolboy error.
Complain about this comment (Comment number 3)
Comment number 4.
At 1st Nov 2009, cybero wrote:If you flag the Update Signal upon the XML patch then you do get the most up to date feed.
Complain about this comment (Comment number 4)
Comment number 5.
At 1st Nov 2009, cybero wrote:Another way of getting some further functionality would be to add another XML feed with the original into a String Multiplexer, then adjust the Multiplexer's Source Index by means of an Interpolation or Input Splitter utility and you can be presenting either the TV or the Radio XML feed
Complain about this comment (Comment number 5)
Comment number 6.
At 3rd Nov 2009, cybero wrote:Just posted up a revamp of your original RSS ScreenSaver that allows for showing either ³ÉÈËÂÛ̳ Radio or ³ÉÈËÂÛ̳ TV, see . Can be run as a ScreenSaver or else as a standalone. h for help, 1 for TV feed and r to reset to Radio feed.
Complain about this comment (Comment number 6)
Comment number 7.
At 22nd Jan 2010, Tico wrote:This is very nice indeed.
Complain about this comment (Comment number 7)