Create a car engine sound?

What is the tactic behind a realistic car engine?
I mean turn it on, go faster/slower, and make everything seem seemless (pun…? )

i guess there 2 (3) main sounds:

the more matter:

  1. the “speed” of engine (frequency of explosion of cilindre)
  2. the speed absolute of the car (friction of air , friction of wells on the air) this is not dependent to the engine
  3. the amount of gas open , this result as a sort of multiplier of 1) (overall in car old)

+) little explosion due to high temperature and fuel not burned (race car)