Linear Movement Sound Controller
Plays sound effects synchronized with linear actuator or hydraulic cylinder movement. Maps actuator position/speed to sound playback for realistic mechanical audio feedback.
Plays sound effects synchronized with linear actuator or hydraulic cylinder movement. Maps actuator position/speed to sound playback for realistic mechanical audio feedback.
Public API
| Function | Description |
|---|---|
module.resetSounds(jbeamData) | Resets sound state. |
Hooks
| Hook | Description |
|---|---|
init(jbeamData) | Connects to a physical JBeam beam to track movement and initializes velocity smoothers. |
initSounds(jbeamData) | Sets up the multi-layered sound engine, defining volume/pitch curves relative to movement velocity. |
updateGFX(dt) | Main loop. Calculates actuator velocity from the sensor beam, modulates the continuous movement loop, triggers discrete sounds for distance increments (segments), and plays impact sounds at physical limits. |
module.reset(jbeamData) | Resets the controller to its initial state. |
See Also
- Linear Actuator Trailer Feet — Linear actuator system
AVAS (Acoustic Vehicle Alerting System)
Controls the Acoustic Vehicle Alerting System required on electric/hybrid vehicles at low speeds. Generates artificial engine sounds to alert pedestrians when the vehicle is moving quietly below a threshold speed.
Reverse Warning Sound Controller
Controls the audible reverse warning beeper that activates when the vehicle is in reverse gear. Manages beep timing, volume, and activation conditions.