Jump to content
  • Advertisement
Sign in to follow this  
greatape

Car engine sound

This topic is 4524 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Has any got any pointers on how to generate a car engine sound, it's for a racing gone on a mobile phone so nothing to fancy needed, just the basics of generating the waveform for an engine sound. I've got a framework setup where each car knows it's revs, which I'll use as an input, plus vectors of other cars from the viewpoint so can use those to modify each engine sound. What I'm missing is the basics of what an individual engines waveform should be like. I'm assuming it would come from something like generating a white noise explosion n times a second, where n is generated from the RPM.

Share this post


Link to post
Share on other sites
Advertisement
you need engine sounds for both the player car and rival cars? Should the rival cars have a slight doppler effect? (pitch going up and down relative to proximity?)

Away from my system I can't think of what white noise would sound like revved up and down. You're definitely going to need a tone, though. Like a 100-300Hz square wave tone with distortion. That sound might be good revved up and down.

Forgive me, I'm unsure of mobile phone's audio capabilities. Is the tone generated by the chipset on the phone or is this going to be played back dynamically through a low low resolution sample?

Tony
___________________________
http://www.anthem-audio.com

Share this post


Link to post
Share on other sites
Thanks for the input, the sound is generated via a simple PCM stream, 8 or 16 bit available, which I plan to generate on the fly.

Square wave with distortion sounds like the kind of thing I might be after, currently I've got a square wave implemented based on rpm, which of course without the distortion doesn't yet sound anything like a car.

As well as the doppler effect other effects to think about are the difference in sound when an exhaust is aimed at you compared to an engine alongside you, or your own engine sitting right in front of you if course.

Share this post


Link to post
Share on other sites
To change that kind of perspective I would employ some EQ tricks. Again, I don't know if there is stereo sound (or if it's at all effective) on mobiles or otherwise I'd say just pan it.

Basically a car to the side of you shouldn't be as clear frequencey wise as a car with it's engine in your face. So I would roll off the high freqs for cars on the side and bring em back up for the ones in front of you...basically.

Tony

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!