I tried to upload the program created for the tone example on the tutorials page to my arduino duemilanove and got “error 22: pitches.h not found”. I created the program just as the tutorial said. What could have gone wrong?
Did you see this part:
The code below uses an extra file, pitches.h. This file contains all the pitch values for typical notes. For example, NOTE_C4 is middle C. NOTE_FS4 is F sharp, and so forth. This note table was originally written by Brett Hagman, on whose work the tone() command was based. You may find it useful for whenever you want to make musical notes.
To make this file, click on the “new Tab” button in the upper right hand corner of the window. It looks like this:
The paste in the following code:
I did exactly that and got the same thing happening to me. I opened a new tab, named it "pitches" and then copy/pasted in the code and still got the same no such file or directory code 22.