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.
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.