Difference between revisions of "Documentation/Engine/Sound/Tires"

From SCS Modding Wiki
Jump to navigation Jump to search
(Created page with "=== Sounds - Tires === This section is related to the sound of tires on different road substances.<br> <br> == Tire Sound Events == Tire sounds are kept separate for the truc...")
 
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
=== Sounds - Tires ===
 
=== Sounds - Tires ===
 
This section is related to the sound of tires on different road substances.<br>
 
This section is related to the sound of tires on different road substances.<br>
<br>
 
  
 
== Tire Sound Events ==
 
== Tire Sound Events ==
Line 16: Line 15:
 
* <name_of_event>/speed<br>The parameter "speed" (km/h) controls the pitch and volume of the substance sound.
 
* <name_of_event>/speed<br>The parameter "speed" (km/h) controls the pitch and volume of the substance sound.
 
* skid_speed<br>The parameter "skid_speed" (m/s) represents the speed of wheel slip in either direction.  
 
* skid_speed<br>The parameter "skid_speed" (m/s) represents the speed of wheel slip in either direction.  
* note<br>The parameter "note" is present only for the "rumble" substance<br>It is a frequency multiplier that is applied to the root note G and forming the melody for the singing road.  
+
* note<br>The parameter "note" is present only for the "rumble" substance. <br>It is a frequency multiplier that is applied to the root note G and forms the melody for the singing road.  
  
 
== Engine Sound Configuration ==
 
== Engine Sound Configuration ==
  
The tire sounds paths are stored in these 4 soundrefs for truck:<br>
+
The tire sounds paths are stored in these 4 soundrefs for the truck:<br>
 
<pre>
 
<pre>
 
sound/tires/rumble.soundref
 
sound/tires/rumble.soundref
Line 27: Line 26:
 
sound/tires/asphalt.soundref
 
sound/tires/asphalt.soundref
 
</pre>
 
</pre>
and these 4 for trailer:<br>
+
and these 4 for the trailer:<br>
 
<pre>
 
<pre>
 
sound/trailer/tires/rumble.soundref
 
sound/trailer/tires/rumble.soundref
Line 34: Line 33:
 
sound/trailer/tires/asphalt.soundref
 
sound/trailer/tires/asphalt.soundref
 
</pre>
 
</pre>
<br>
+
 
Example:<br>
+
 
 +
Example:
 +
 
 
Content of the "sound/tires/rumble.soundref" is:
 
Content of the "sound/tires/rumble.soundref" is:
 
<pre>
 
<pre>

Latest revision as of 23:55, 13 August 2023

Sounds - Tires

This section is related to the sound of tires on different road substances.

Tire Sound Events

Tire sounds are kept separate for the truck tires and trailer tires, but both have the same events and parameters.
Currently there are 4 supported substances each with their own sound event:

  • asphalt
  • rumble
  • gravel
  • grass

Tire Sound Parameters

Sound parameters:

  • <name_of_event>/speed
    The parameter "speed" (km/h) controls the pitch and volume of the substance sound.
  • skid_speed
    The parameter "skid_speed" (m/s) represents the speed of wheel slip in either direction.
  • note
    The parameter "note" is present only for the "rumble" substance.
    It is a frequency multiplier that is applied to the root note G and forms the melody for the singing road.

Engine Sound Configuration

The tire sounds paths are stored in these 4 soundrefs for the truck:

	sound/tires/rumble.soundref
	sound/tires/grass.soundref
	sound/tires/gravel.soundref
	sound/tires/asphalt.soundref

and these 4 for the trailer:

	sound/trailer/tires/rumble.soundref
	sound/trailer/tires/grass.soundref
	sound/trailer/tires/gravel.soundref
	sound/trailer/tires/asphalt.soundref


Example:

Content of the "sound/tires/rumble.soundref" is:

source="/sound/tires/tires.bank#rumble"

The location of the sound bank for the truck: "/sound/tires/tires.bank"
and sound bank for the trailer: "/sound/trailer/tires/tires.bank"