The sketch worked fine after I worked out what I had done wrong. I originally used pin 1.7 (as I assumed that was pin 8), and when there was no output I tried each other pin. The problem was that I didn't press reset between each change of pin - I just assumed the tone sequence would repeat. Once I actually read the sketch properly, and realised I had used the wrong pin, everything worked just as it should.
Thanks for the guide link - I did find that, but misunderstood the pin layouts until it was pointed out earlier in this thread.