You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Source/Documentation/Manual/sound.rst
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -446,6 +446,62 @@ Trigger Function
446
446
========= =====================================
447
447
448
448
449
+
Track Based Sounds for Routes
450
+
-----------------------------
451
+
452
+
As track based sounds (such as track joints, curve squeal, etc) are common to all rolling stock these types of sounds can be added at a route level, rather then
453
+
at an individual rolling stock level. This has the advantage of ensuring a level of consistency for all individual stock rather then requiring each piece of stock
454
+
to have appropriate sounds associated with it. It means that all rolling stock will be "automatically" have track sounds given to it.
455
+
456
+
This approach relies on use of the Track Region sounds configured in the TType.dat file. A base SMS file is created for the first track region sound which is played
457
+
continuously and contains all track related sounds that need to be played despite the region that the train is in. Further track region SMS files can be created for
458
+
different track type regions, such as different bridge types (such as wood, concrete or steel).
459
+
460
+
To enable this approach in OR, the following parameters need to be set accordingly in the route TRK file.
461
+
462
+
``ORTSPlayTrackSoundsBaseContinuous`` - this causes the first SMS file in the TType file to be played continuously. Set to 1 for continuous play or 0 for legacy operation.
463
+
464
+
``ORTSDistanceBetweenTrackJoints`` - this defines the distance between the track joints, and the value is any valid distance.
465
+
466
+
``ORTSConcreteSleepers`` - Allows sounds to be adjusted according to whether track is wood or concrete supported. Set to 1 if concrete sleepers are used throughout the route.
467
+
468
+
The following control parameters can be used in the relevant track region SMS files to vary a frequency or volume curve for the sound being played:
469
+
470
+
``AngleofAttackControlled`` - Varies as the Angle of Attack of a car on a curve varies, in Milliradian (mRad).
471
+
472
+
``CarFrictionControlled`` - Varies as friction of car changes, typically between 0 and 1.
473
+
474
+
``WheelRPMControlled`` - Varies as RPM of wheel changes, in RPM.
475
+
476
+
``CarDistanceTrackControlled`` - Distance that the car is from the camera in metres.
477
+
478
+
``CarTunnelDistanceControlled`` - Varies based upon the distance as a car travels into and out of a tunnel. Typically this value is between 0 and 25 metres.
479
+
480
+
The following control parameters can be used to trigger, enable or disable different WAV sound files within a SMS file:
481
+
482
+
``Joint_2Axle_Trigger``, ``Joint_3Axle_Trigger``, ``Joint_4Axle_Trigger``, ``Joint_6Axle_Trigger``, ``Joint_8Axle_Trigger`` - these triggers are operated when the car passes
483
+
over a joint, and can be varied in accordance with the number of axles defined in the WAG file.
484
+
485
+
``Switch_2Axle_Trigger``, ``Switch_3Axle_Trigger``, ``Switch_4Axle_Trigger``, ``Switch_6Axle_Trigger``, ``Switch_8Axle_Trigger`` - these triggers are operated when the car
486
+
passes over a switch, and can be varied in accordance with the number of axles defined in the WAG file.
487
+
488
+
``Xover_2Axle_Trigger``, ``Xover_3Axle_Trigger``, ``Xover_4Axle_Trigger``, ``Xover_6Axle_Trigger``, ``Xover_8Axle_Trigger`` - these triggers are operated when the car passes
489
+
over a Cross over, and can be varied in accordance with the number of axles defined in the WAG file. Note that the cross over needs to have been defined within the route editor.
490
+
491
+
``AngleofAttack_inc_past``, ``Angleofattack_dec_past`` - Varies as the Angle of Attack of a car on a curve varies, in Milliradian (mRad).
492
+
493
+
``WheelRPM_inc_past``, ``WheelRPM_dec_past`` - Varies as RPM of wheel changes, in RPM.
``CarInTunnel_inc_past``, ``CarInTunnel_dec_past`` - 0 = car not in tunnel, 1 = car in tunnel.
498
+
499
+
``CarCameraDistance_inc_past``, ``CarCameraDistance_dec_past`` - Distance that the car is from the camera, in metres.
500
+
501
+
Note: If rolling stock already has track sounds set up in tyhe wagon SMS file, then these will be played at the same time as the route based sounds. For best sound outcomes,
502
+
the number of axles for each wagon should be correctly set in the WAG file.
0 commit comments