The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 1 - Line: 866 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 866 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 885 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 885 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message



Forums
Engine Sound Algorithm - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3)
+--- Forum: General Discussion (https://www.vdrift.net/Forum/forumdisplay.php?fid=8)
+--- Thread: Engine Sound Algorithm (/showthread.php?tid=1594)



Engine Sound Algorithm - joaquinllano - 01-25-2012

Hi all.

First of all sorry for my bad English.

You have a nice game and very detailed. Congratulations.

I'm developing a Open Hardware / Open Source sonud and lights module for rc trucks and machines based on Arduino.

There are commercial modules but they are expensive and not very flexible. I also searched for similar projects but only find sound generators based on square waves for rc boats.

I'm working on the engine sound for my project, but I don't know where to start.
I need that the engine sound changes depending the position of throttle stick, like in real engines.

This afternoon I thought that I can use the algorithm that car games use to generate engine sound and find this game searching an Open Source car game.

I had in mind use engine sound at various rpm and mix them somehow, but looking at your cars I've discovered that you generate the engine sound from a Wav file that only has a piece of audio with the engine at maximum rpm. Would be great and very helpful for me I someone coud explain me how It's done.

I've looked intro source code of developement version but didn't find the concrete algorithm.

The module is for my track loader excavator, but I want that it can be used also in trucks and other types, just changing engine sound files. If you like, you can see It on my personal blog (http://joaquinllanomontero.homelinux.com).

Thans a lot for your help.


- NaN - 01-26-2012

The sound pitch is scaled with rpm and gain is adjusted based on throttle position.

Check CAR::UpdateSounds(float dt) and maybe also SOUNDSOURCE::SampleAndAdvanceWithPitch16bit(int * chan1, int * chan2, int len)


- joaquinllano - 01-26-2012

Thank you very much for your help NaN.


- keiranval - 02-14-2012

Hi All,
I'm sending this message to two groups that might possibly have leads
on algorithm research to convey convincing vehicle engine sounds. I'm
currently using the tried and true layered/crossfade sample approach,
but it isn't entirely convincing. I've heard from a couple of people
at AES yesterday that granular synthesis was experimented with but
abandoned for the crossfade sample method. I don't know why, and it
would be great to understand why or if others have experimented with
other ideas.


Re: Engine Sound Algorithm - car_mike - 08-24-2012

joaquinllano Wrote:Hi all.

First of all sorry for my bad English.

You have a nice game and very detailed. Congratulations.

I'm developing a Open Hardware / Open Source sonud and lights module for rc trucks and machines based on Arduino.

There are commercial modules but they are expensive and not very flexible. I also searched for similar projects but only find sound generators based on square waves for rc boats.

I'm working on the engine sound for my project, but I don't know where to start.
I need that the engine sound changes depending the position of throttle stick, like in real engines.

This afternoon I thought that I can use the algorithm that car games use to generate engine sound and find this game searching an Open Source car game.

I had in mind use engine sound at various rpm and mix them somehow, but looking at your cars I've discovered that you generate the engine sound from a Wav file that only has a piece of audio with the engine at maximum rpm. Would be great and very helpful for me I someone coud explain me how It's done.

I've looked intro source code of developement version but didn't find the concrete algorithm.

The module is for my track loader excavator, but I want that it can be used also in trucks and other types, just changing engine sound files. If you like, you can see It on my personal blog (http://joaquinllanomontero.homelinux.com).

Thans a lot for your help.
this would be a nice project.. please keep us updated.. Its really nice that this company is putting some attention to improve their cars Engine Sound.. http://www.stylintrucks.com/ parts and accessories could surely help with this job.. they got great items..