Each note has to have a "duration". In your code you are turning on and of the speaker just once. this produces the click you hear. You need to loop that click multiple times in order for it to become an audible sound.
i've done it the only thing is that the data comes back to arduino when it's not connected to the computer... if the computer is connected the arduino "Serial" port is busy talking to it.
there are two ways... 1 send the escape code to switch to command mode... send inquiry... collect the data.. send the escape again (now you're back in contact with the comp) and send the data back to the computer.
2 display the data on an lcd display on the arduino.
Quartz composer is not so great in terms of inputs and has practically no outputs (apart from the screen)
You can use a midi interface and connect arduino to it, QC will read midi notes... you can hack a mouse or a keyboard and use arduino to simulate key presses..
to send data to arduino there are not many options, I've just made a QC to DMX interface but it's not super fast.
The other option is to learn how to program with Objective C and build a wrapper around the QC engine, with this you can interface it to anything
this should happen only if you have the arduino connected to a machine and the flash files server from another. This triggers the request usually. there is a way to run a policy file server.
Thanks for the article, it's a very useful contribution.
I would encourage anybody who is contributing to the playground to add their name at the beginning of the page and possibily an email address. I believe you all deserve to be credited for the contribution you make to Arduino and the playground needs to reflect the hard work a lot of you do.