This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
modding:developerinfo:soundsets [2019/06/24 14:42] yoshi Add new description of soundeffectsutil |
modding:developerinfo:soundsets [2019/06/24 15:58] (current) yoshi [Soundeffectsutil] Add squeal description |
||
---|---|---|---|
Line 166: | Line 166: | ||
Some of these functions are described below. | Some of these functions are described below. | ||
- | == makeRoadVehicle2(speeds, idleSpeed, idleGain0, driveSpeed, speed01) == | + | === makeRoadVehicle2(speeds, idleSpeed, idleGain0, driveSpeed, speed01) === |
This function provides gain and pitch curves for a two track sound set of a motorized road vehicle. The first track is for the idle sound, the second one for the drive sound. The function requires the following parameters: | This function provides gain and pitch curves for a two track sound set of a motorized road vehicle. The first track is for the idle sound, the second one for the drive sound. The function requires the following parameters: | ||
Line 183: | Line 183: | ||
<code lua> | <code lua> | ||
soundeffectsutil.makeRoadVehicle2({ .05, .1, .3 }, .075, .6, .4, input.speed01), | soundeffectsutil.makeRoadVehicle2({ .05, .1, .3 }, .075, .6, .4, input.speed01), | ||
+ | </code> | ||
+ | |||
+ | === squeal(speed, sideForce, maxSideForce) === | ||
+ | This function provides a gain and pitch value depending on the current side force of a rail vehicle. An exemplary call to this function: | ||
+ | <code lua> | ||
+ | soundeffectsutil.squeal(input.speed, input.sideForce, input.maxSideForce), | ||
</code> | </code> |