Theramin Program

Thanks for the quick replies. Any idea how I edit the tone library to make those changes?

also, the error messages:

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