====== Sound System ====== Starting from MTR 3.0.0 Beta-5-unofficial-8, sounds are added to trains for the Minecraft Transit Railway mod. Starting from MTR 3.1.0-unofficial-1, the BVE sound system is also introduced into the mod. ===== Legacy Sound System ===== Legacy Sound System is the sound system available from MTR 3.0.0 Beta-5-unofficial-8. In most circumstances, LSS features a 10-20 second recording of that train, which could be mirrored for both acceleration and deceleration. ==== How does it work? ==== === Motor sound === | {{ :mtr:lss_render.png?300 }} | | How LSS works, visualised. | Motor sounds are split into 0.6-second audio files, and are named ''speed_0a'', then ''speed_0b'', ''speed_0c'', ''speed_1a'', and so on. There are 3 separate "channels" in LSS (a, b and c), and which channel an audio file falls into depends on the alphabet given at the end of the file name. The order in which the file is played depends on the number specified in the audio file name, starting from 0. When a train is being defined to have a ''legacySpeedSoundBaseResource'', the mod will look for sounds defined as ''(directory_name)_acceleration_xx'' in ''sounds.json''. === Door sound === When a ''legacyDoorSoundBaseResource'' is defined, MTR will always try and find a sound named ''(id)_door_open'' and ''(id)_door_close'' for door open/close sound. They will be played when doors are opening or closing. Property ''legacyDoorCloseSoundTime'' is used to determine when the door sound should be played. If set to 0.5, the sound will be played when the doors start to move. If set to 1, the sound will be played 1-2 seconds before the doors start moving. if the time between doors opening and closing are too short, the game will skip playing door closing sounds completely.