Playing tones while using Ken Shirriff's IR library

Hello! I realized that tone() cannot be used while using Ken Shirriff's IR Library http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html. That is because they both user Timer 2 on Arduino. All tone() does to a magnetic buzzer is make it click. I am using hash values for a small remote for a digital picture frame. This is the Serial printout from Ken's hash example for unsupported protocols: 'real' decode: FF6897, hash decode: C101E57B 'real' decode: FFFFFFFF, hash decode: 50C5D1F 'real' decode: FFFFFFFF, hash decode: 50C5D1F 'real' decode: FFFFFFFF, hash decode: 50C5D1F 'real' decode: FFFFFFFF, hash decode: 50C5D1F 'real' decode: FFFFFFFF, hash decode: 50C5D1F 'real' decode: FFFFFFFF, hash decode: 50C5D1F 'real' decode: FFFFFFFF, hash decode: 50C5D1F In red text appears when I hold down the button. The effect I want is that it plays a certain tone until I release the button. I tried rapidly turning the pin HIGH and LOW with digitalWrite() and delayMicroseconds(). That makes the note constantly beep until I release the button, which is undesired. How can I play a steady tone (pitch depending on button) until I release the button? What other methods can I use to create the tone? If more info is needed, I will try to provide it. Thanks!

You could try the Tone Library... http://code.google.com/p/rogue-code/wiki/ToneLibraryDocumentation

You could change the timer allocation order (tone_pin_to_timer_PGM array)... https://github.com/arduino/Arduino/blob/master/hardware/arduino/cores/arduino/Tone.cpp#L87

You could add an ATtiny processor to the project that is responsible for generating the tone.