tone library error

hi everybody!

I am following the instructions on the following link to try to build a laser harp:

http://www.radioshack.com/graphics/uc/rsk/Support/ProductManuals/Laser_Harp_Online_Instructions.pdf

For it to work, it is neccesary to install the "Tone" library, that I downloaded from:

http://code.google.com/p/rogue-code/wiki/ToneLibraryDocumentation

I installed it, and tried a very simple example:

#include <Tone.h>

Tone tone1;

void setup()
{
  tone1.begin(13);
  tone1.play(NOTE_A4);
}

void loop()
{
}

But it gives me the following compiling errors, that I do not know how to sort out. ANY IDEA? THANKS!!!!

D:\temp\Arduino\libraries\Tone\Tone.cpp: In member function 'void Tone::begin(uint8_t)':
D:\temp\Arduino\libraries\Tone\Tone.cpp:121: error: 'bitWrite' was not declared in this scope
D:\temp\Arduino\libraries\Tone\Tone.cpp:123: error: 'digitalPinToPort' was not declared in this scope
D:\temp\Arduino\libraries\Tone\Tone.cpp:123: error: 'portOutputRegister' was not declared in this scope
D:\temp\Arduino\libraries\Tone\Tone.cpp:124: error: 'digitalPinToBitMask' was not declared in this scope
D:\temp\Arduino\libraries\Tone\Tone.cpp: In member function 'void Tone::play(uint16_t, uint32_t)':
D:\temp\Arduino\libraries\Tone\Tone.cpp:198: error: 'OUTPUT' was not declared in this scope
D:\temp\Arduino\libraries\Tone\Tone.cpp:198: error: 'pinMode' was not declared in this scope
D:\temp\Arduino\libraries\Tone\Tone.cpp:294: error: 'bitWrite' was not declared in this scope
D:\temp\Arduino\libraries\Tone\Tone.cpp: In member function 'void Tone::stop()':
D:\temp\Arduino\libraries\Tone\Tone.cpp:361: error: 'digitalWrite' was not declared in this scope

ohhhh, I had an issue with tone too, but I fixed it but can't remember how... Let me see if I have any notes lying around. I don't remember how I fixed it, or ifi twas my sketch or the library.

wait I am sorry, my memory is still fuzzy, but tone is already a part of the core arduino library. You probably shouldn't use the rougecode version of tone unless you absolutly must.

I found in the comments of the tone library, the following commentary:

Comment by jake.rad...@verizon.net, Oct 27, 2013
Just in case anybody missed it in the comments above, if you add #include <Arduino.h> at the top of the tone.cpp file, a lot of compiling errors will be fixed.

FIXED