Noob here, help needed , audio pitch bend project for my RC car.

Noob here, help needed, audio pitch bend project for my RC car.

Hi.
Last month,I just made a complete circuit for control LED in my RC-Car. It made from standalone Mega168. I have gained knowledge from this site. Everything goes well.

For next step, I have thinking about a sound engine for my RC car. I really want any suggestion about audio playback technique that can play an engine sound file (wav) and also can bend a sound to higher-lower pitch relate to throttle Stick from RC radio controller. I can write a code for retrieve a signal from RC receiver, but for audio pitch bend is too hard for me.I can't find any arduino library relate to audio pitch bend or change a sampling rate capability.

The goal of the project:

-pitch bend for engine sound when increase-decrease throttle Stick.

-can play 2-3 sampling files simultaneously when get interrupt from PWM signal (turn left-right sound,change gear sound or any sound like a brake)

-simple circuit as possible.

I found another project relate to my project but i can't find an example code to learned.

and what/where is a datasheet p.133 from this page
http://playground.arduino.cc/Code/PCMAudio

Sorry for my bad English, English is not my native.

Thank for your help.

arduino.jpg

The playback pitch is determined by this line

OCR1A = F_CPU / SAMPLE_RATE;    // 16e6 / 8000 = 2000

If you cahnge the sample rate pitch will change accordingly. Remenber to turn interrupts of dureing change and turn them back on again after change.

Thank you for your reply.
Now,I need to learn more about register configuration before going to the next step.I will try to combine sample rate change and playback 3 wave at same time together. It's hard for newbie like me but I will try.

I still waiting any suggestion from everybody.Thank in advance.