<?xml version="1.0" encoding="utf-8" standalone="no" ?>

<sounds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../shared/xml/schema/vehicle_sounds.xsd">
    <motorized>
        <sounds>	
			
			<motor template="engineLarge" file="sounds/900S4_engine_indoor.gls" linkNode="vario900G7_vis" volumeScale="1.0" innerRadius="0.0" outerRadius="100.0" >
                <volume outdoor="0.0" indoor="1.0">
                    <modifier type="MOTOR_RPM_REAL" value="800"  modifiedValue="1.4" />
                    <modifier type="MOTOR_RPM_REAL" value="2200" modifiedValue="1.65" />
                </volume>
				<lowpassResonance indoor="1.0" outdoor="1.0"/>
				<lowpassGain indoor="1.0" outdoor="1.0" />
            </motor>
			
			<motor template="engineLarge" file="sounds/900S4_engine_outdoor.gls" linkNode="vario900G7_vis" volumeScale="1.0" innerRadius="0.0" outerRadius="100.0" >
                <volume outdoor="1.0" indoor="0.0">
                    <modifier type="MOTOR_RPM_REAL" value="800"  modifiedValue="1.50" />
                    <modifier type="MOTOR_RPM_REAL" value="2200" modifiedValue="1.65" />
                </volume>
				<lowpassResonance indoor="1.0" outdoor="1.0"/>
				<lowpassGain indoor="1.0" outdoor="1.0" />
            </motor>
			
			<motor file="sounds/900S4_turbo.gls" linkNode="turboSoundRef" innerRadius="5.0" outerRadius="75.0" volumeScale="1.8" >
			  <volume indoor="0.25" outdoor="0.4" >
				 <modifier type="MOTOR_RPM_REAL" value="800"  modifiedValue="0.00" />
				 <modifier type="MOTOR_RPM_REAL" value="850"  modifiedValue="0.35" />
                 <modifier type="MOTOR_RPM_REAL" value="2200" modifiedValue="1.00" />
			  </volume>
			  <lowpassGain indoor="0.5" outdoor="1.0" />
			</motor>
						
			<motor template="engineLarge" file="sounds/900S4_indoor_load.gls"  volumeScale="0.5" >
                <volume outdoor="0.0" indoor="2.35">
					<modifier type="SPEED" value="0.0"  modifiedValue="0.0" />
					<modifier type="SPEED" value="0.1"  modifiedValue="0.0" />
					<modifier type="SPEED" value="0.2"  modifiedValue="0.1" />
					<modifier type="SPEED" value="3.0"  modifiedValue="0.75" />
					<modifier type="SPEED" value="10.0"  modifiedValue="1.00" />
					<modifier type="SPEED" value="22.0"  modifiedValue="1.00" />
					<modifier type="SPEED" value="55.0"  modifiedValue="0.50" />
				
					<modifier type="MOTOR_LOAD" value="0.0" modifiedValue="0.5" />
					<modifier type="MOTOR_LOAD" value="1.0" modifiedValue="1.0" />
                </volume>
				<lowpassGain indoor="1.0" outdoor="1.0" />
            </motor>
			
			<motor file="sounds/900S4_outdoor_load.gls" linkNode="exhaustParticle" fadeIn="4" fadeOut="0.67" innerRadius="0.0" outerRadius="100.0" volumeScale="0.5">
				<volume indoor="0" outdoor="2.0" >
					<modifier type="SPEED" value="0.0"  modifiedValue="1.15" />
					<modifier type="SPEED" value="0.1"  modifiedValue="0.7" />
					<modifier type="SPEED" value="0.2"  modifiedValue="0.9" />
					<modifier type="SPEED" value="3.0"  modifiedValue="1.0" />
					<modifier type="SPEED" value="10.0"  modifiedValue="1.5" />
					<modifier type="SPEED" value="22.0"  modifiedValue="1.5" />
					<modifier type="SPEED" value="55.0"  modifiedValue="0.75" />
				
					<modifier type="MOTOR_LOAD" value="0.0" modifiedValue="0.5" />
					<modifier type="MOTOR_LOAD" value="1.0" modifiedValue="1.0" />
                </volume>
				<lowpassGain indoor="1.0" outdoor="1.0" />
			</motor>
			
			<motor  file="sounds/900S4_fan.gls" linkNode="fanSoundRef" volumeScale="1.0" innerRadius="0" outerRadius="100" fadeIn="4.0" fadeOut="2.0" pitchScale="1.0">
				<loopSynthesisRpm>
					<modifier type="MOTOR_RPM_REAL" value="800" modifiedValue="0.0" />
					<modifier type="MOTOR_RPM_REAL" value="1800" modifiedValue="1.0" />
					<modifier type="MOTOR_RPM_REAL" value="2200" modifiedValue="1.2" />					
				</loopSynthesisRpm>
                <lowpassGain indoor="0.5" outdoor="1.15" />
                <lowpassCutoffFrequency indoor="100" outdoor="15000"/>
                <lowpassResonance indoor="0" outdoor="0"/>
                <volume indoor="0.25" outdoor="0.7" >					
					<modifier type="MOTOR_RPM_REAL" value="800" modifiedValue="1.25" />
					<modifier type="MOTOR_RPM_REAL" value="1500" modifiedValue="1.35" />
                    <modifier type="MOTOR_RPM_REAL" value="2200" modifiedValue="1.65" />

                    <modifier type="MOTOR_LOAD" value="0.00"   modifiedValue="1.00" />
                    <modifier type="MOTOR_LOAD" value="35.00"  modifiedValue="1.00" />
                    <modifier type="MOTOR_LOAD" value="75.00"  modifiedValue="1.20" />
                    <modifier type="MOTOR_LOAD" value="100.00" modifiedValue="1.60" />
                </volume>
				<pitch>
                    <modifier type="MOTOR_RPM_REAL" value="800" modifiedValue="1.0" />
					<modifier type="MOTOR_RPM_REAL" value="1800" modifiedValue="1.2" />
					<modifier type="MOTOR_RPM_REAL" value="2200" modifiedValue="1.2" />	
                </pitch>
            </motor>
			
			<gearbox file="sounds/900S4_transmission_load.ogg" linkNode="tranmissionSoundRef" volumeScale="1.15" innerRadius="5.0" outerRadius="75.0" supportsReverb="false" fadeIn="1.5" fadeOut="1.5">
                <volume indoor="0.4" outdoor="0.9" >		
					<modifier type="SPEED" value="0.0"  modifiedValue="0.0" />
					<modifier type="SPEED" value="0.1"  modifiedValue="0.0" />
					<modifier type="SPEED" value="0.2"  modifiedValue="0.1" />
					<modifier type="SPEED" value="5.0"  modifiedValue="0.25" />
					<modifier type="SPEED" value="12.0"  modifiedValue="1.00" />
					<modifier type="SPEED" value="22.0"  modifiedValue="1.25" />
					<modifier type="SPEED" value="55.0"  modifiedValue="0.75" />
				
					<modifier type="MOTOR_LOAD" value="0.0" modifiedValue="0.5" />
					<modifier type="MOTOR_LOAD" value="1.0" modifiedValue="2.5" />
					
					<modifier type="DRIVING_DIRECTION" value="1.00" modifiedValue="1.0" />
                </volume>
                <pitch>
					<modifier type="MOTOR_RPM_REAL" value="800" modifiedValue="0.7" />
					<modifier type="MOTOR_RPM_REAL" value="1900" modifiedValue="1" />
                    <modifier type="MOTOR_RPM_REAL" value="2200" modifiedValue="1.15" />
					
					<modifier type="MOTOR_LOAD" value="0.0" modifiedValue="0.8" />
					<modifier type="MOTOR_LOAD" value="1.0" modifiedValue="1.05" />
					
					<modifier type="SUSPENSION" value="-0.05" modifiedValue="1.05" />
                    <modifier type="SUSPENSION" value="-0.02" modifiedValue="1.025" />
                    <modifier type="SUSPENSION" value="0.0"   modifiedValue="1.0" />
                    <modifier type="SUSPENSION" value="0.02"  modifiedValue="1.025" />
                    <modifier type="SUSPENSION" value="0.05"  modifiedValue="1.05" />
					
					<modifier type="DRIVING_DIRECTION" value="-1.0" modifiedValue="1.1" />
					<modifier type="DRIVING_DIRECTION" value="0.00" modifiedValue="1.0" />
					<modifier type="DRIVING_DIRECTION" value="1.00" modifiedValue="1.0" />
                </pitch>
				<lowpassGain indoor="0.25" outdoor="1.0" />
			</gearbox>
	
			<gearbox file="sounds/900S4_transmission_braking.gls" linkNode="tranmissionSoundRef" volumeScale="2.5" pitchScale="1.05" innerRadius="5" outerRadius="75" fadeIn="0.9" fadeOut="1" priority="HIGH">
				<loopSynthesisRpm>
					<modifier type="DIFFERENTIAL_SPEED" value="0.0" modifiedValue="0.2" />
					<modifier type="DIFFERENTIAL_SPEED" value="66.0" modifiedValue="0.8" />
					
				</loopSynthesisRpm>
				<volume indoor="0.75" outdoor="1.15" >
					<modifier type="DIFFERENTIAL_SPEED" value="0.0"  modifiedValue="0.0" />
					<modifier type="DIFFERENTIAL_SPEED" value="5.0"  modifiedValue="0.20" />
					<modifier type="DIFFERENTIAL_SPEED" value="6.0"  modifiedValue="0.40" />
					<modifier type="DIFFERENTIAL_SPEED" value="10.0" modifiedValue="0.65" />
					<modifier type="DIFFERENTIAL_SPEED" value="25.0" modifiedValue="0.90" />
					<modifier type="DIFFERENTIAL_SPEED" value="53.0" modifiedValue="1.05" />
					<modifier type="DIFFERENTIAL_SPEED" value="66.0" modifiedValue="1.15" />
					
					<modifier type="ACCELERATE" value="0.0" modifiedValue="1.00" />
                    <modifier type="ACCELERATE" value="0.01" modifiedValue="0.35" />
                    <modifier type="CRUISECONTROL" value="0" modifiedValue="1.00" />
                    <modifier type="CRUISECONTROL" value="1" modifiedValue="0.35" />

					<modifier type="MOTOR_LOAD" value="-1.00" modifiedValue="1.5" />
					<modifier type="MOTOR_LOAD" value="0.00"  modifiedValue="1.0" />
					<modifier type="MOTOR_LOAD" value="0.20"  modifiedValue="1.0" />
					<modifier type="MOTOR_LOAD" value="0.30"  modifiedValue="1.2" />
					<modifier type="MOTOR_LOAD" value="0.45"  modifiedValue="1.0" />
					<modifier type="MOTOR_LOAD" value="0.80"  modifiedValue="0.75" />
					<modifier type="MOTOR_LOAD" value="1.00"  modifiedValue="0.65" />

					<modifier type="DRIVING_DIRECTION" value="-1.0" modifiedValue="0.75" />
					<modifier type="DRIVING_DIRECTION" value="0.00" modifiedValue="1.0" />
					<modifier type="DRIVING_DIRECTION" value="1.00" modifiedValue="1.0" />
				</volume>
				<pitch>
					<modifier type="SUSPENSION" value="-0.08" modifiedValue="1.03" />
					<modifier type="SUSPENSION" value="-0.02" modifiedValue="1.01" />
					<modifier type="SUSPENSION" value="0.0" modifiedValue="1.0" />
					<modifier type="SUSPENSION" value="0.02" modifiedValue="1.01" />
					<modifier type="SUSPENSION" value="0.08" modifiedValue="1.03" />

					<modifier type="DRIVING_DIRECTION" value="-1.0" modifiedValue="1.0" />
					<modifier type="DRIVING_DIRECTION" value="0.00" modifiedValue="1.0" />
					<modifier type="DRIVING_DIRECTION" value="1.00" modifiedValue="1.0" />
				</pitch>
				<lowpassCutoffFrequency indoor="250" outdoor="20000" />
				<lowpassGain indoor="1" outdoor="1" />
			</gearbox>	
			
			<motor file="sounds/900S4_transmission_speed.ogg" linkNode="tranmissionSoundRef" innerRadius="5.0" outerRadius="75.0" volumeScale="1.25" fadeIn="1.5" fadeOut="1.5" >
                 <volume indoor="1.9" outdoor="2.0" >
					<modifier type="SPEED" value="0.0"  modifiedValue="0.0" />
					<modifier type="SPEED" value="5.0"  modifiedValue="0.1" />
					<modifier type="SPEED" value="15.0" modifiedValue="0.45" />
					<modifier type="SPEED" value="23.0" modifiedValue="0.75" />
                    <modifier type="SPEED" value="55.0" modifiedValue="1.0" />
                    <modifier type="ACCELERATE" value="0.0" modifiedValue="0.71" />
                    <modifier type="ACCELERATE" value="0.5" modifiedValue="1.00" />
                    <modifier type="CRUISECONTROL" value="0" modifiedValue="1.00" />
                    <modifier type="CRUISECONTROL" value="1" modifiedValue="1.41" />
                </volume>
                <pitch indoor="1.0" outdoor="1.0" >
                    <modifier type="SPEED" value="0.0" modifiedValue="0.5" />
                    <modifier type="SPEED" value="65.0" modifiedValue="1.0" />
					<modifier type="SUSPENSION" value="-0.05" modifiedValue="0.95" />
                    <modifier type="SUSPENSION" value="-0.02" modifiedValue="0.98" />
                    <modifier type="SUSPENSION" value="0.0" modifiedValue="1.0" />
                    <modifier type="SUSPENSION" value="0.02" modifiedValue="1.02" />
                    <modifier type="SUSPENSION" value="0.05" modifiedValue="1.05" />
                </pitch>
				<lowpassGain indoor="0.25" outdoor="1.0" />
            </motor>		

			<motor template="indoorCabinRumble" volumeScale="50" pitchScale="1.3" linkNode="seat" innerRadius="0.0" outerRadius="2.0"/>
			<motor template="indoorCabinOldVehicle" file="sounds/cabinRumble.ogg" linkNode="seat" volumeScale="50" pitchScale="1.3" innerRadius="0.0" outerRadius="2.0" />

			<compressedAir template="brakeCompressorLarge" file="sounds/900S4_brake_airrelease.ogg" linkNode="compressedAirSoundRef" volumeScale="1.75" innerRadius="0" outerRadius="25" fadeIn="0.1" fadeOut="0.1">	
				<volume indoor="0.60" outdoor="1.00"/>
				<sourceRandomization file="sounds/900S4_brake_airrelease_2.ogg"/>
				<sourceRandomization file="sounds/900S4_brake_airrelease_3.ogg"/>
				<sourceRandomization file="sounds/900S4_brake_airrelease_4.ogg"/>
				<sourceRandomization file="sounds/900S4_brake_airrelease_5.ogg"/>
			</compressedAir>
			
			<airCompressorRun template="brakeCompressorLarge" file="sounds/900S4_compressor.gls" linkNode="airCompressorRunSoundRef" volumeScale="1.25" fadeIn="0.1" fadeOut="0.1" innerRadius="0" outerRadius="25" pitchScale="1.0" isLocalSound="true" supportsReverb="false" >
				<loopSynthesisRpm>
                    <modifier type="MOTOR_RPM_REAL" value="800"  modifiedValue="0.0" />
                    <modifier type="MOTOR_RPM_REAL" value="2200" modifiedValue="1.0" />
                </loopSynthesisRpm>
				<volume indoor="0.4" outdoor="1.75" >
					<modifier type="MOTOR_RPM_REAL" value="800"  modifiedValue="1.2" />
                    <modifier type="MOTOR_RPM_REAL" value="2200" modifiedValue="1.4" />
				</volume>
				<lowpassGain indoor="0.25" outdoor="1" />				
			</airCompressorRun>
			
        </sounds>
    </motorized>

	<enterable>
        <sounds>
            <rain template="rainInVehicle"  linkNode="roofDoor" innerRadius="0.0" outerRadius="3.0">
                <loopSynthesisRpm>
                    <modifier type="SPEED" value="0.0" modifiedValue="0.0" />
                    <modifier type="SPEED" value="42.0" modifiedValue="1" />
                </loopSynthesisRpm>
                <volume>
                    <modifier type="SPEED" value="0" modifiedValue="1" />
                    <modifier type="SPEED" value="25" modifiedValue="1" />
                    <modifier type="SPEED" value="42" modifiedValue="1.2" />
                </volume>

                <pitch>
                    <modifier type="SPEED" value="0" modifiedValue="1" />
                    <modifier type="SPEED" value="25" modifiedValue="1" />
                    <modifier type="SPEED" value="42" modifiedValue="1.0" />
                </pitch>
            </rain>

            <hail template="hailInVehicle"  linkNode="roofDoor" volumeScale="1.5" innerRadius="0.0" outerRadius="3.0">
                <loopSynthesisRpm>
                    <modifier type="SPEED" value="0.0" modifiedValue="0.0" />
                    <modifier type="SPEED" value="42.0" modifiedValue="1" />
                </loopSynthesisRpm>
                <volume>
                    <modifier type="SPEED" value="0" modifiedValue="1" />
                    <modifier type="SPEED" value="25" modifiedValue="1" />
                    <modifier type="SPEED" value="42" modifiedValue="1.2" />
                </volume>

                <pitch>
                    <modifier type="SPEED" value="0" modifiedValue="1" />
                    <modifier type="SPEED" value="25" modifiedValue="1" />
                    <modifier type="SPEED" value="42" modifiedValue="1.0" />
                </pitch>
            </hail>
        </sounds>
    </enterable>

    <lights>
        <sounds>
            <toggleLights template="switch01" linkNode="steeringWheelFrame" />
            <turnLight file="sounds/FendtG6_turnlight.ogg" linkNode="steeringWheelFrame" innerRadius="0.0" outerRadius="2.0">
                <volume indoor="5" outdoor="0.0" />
            </turnLight>
        </sounds>
    </lights>

   <attacherJoints>
        <sounds>
			<attach template="attach01" />
            <hydraulic template="hydraulicOpen04" file="sounds/fendt_hydraulicopen.ogg" volumeScale="3.25"/>
        </sounds>
    </attacherJoints>

    <drivable>
        <sounds>
            <waterSplash template="waterSplash01" linkNodeOffset="0 0.664 0" volumeScale="10" innerRadius="0.0" outerRadius="25.0"/>
        </sounds>
    </drivable>
	
	<ai>
        <automaticSteering>
            <sounds>
                <engage file="$data/sounds/ui/gps/gpsEngage_Fendt.ogg" volumeScale="0.75" linkNode="steeringWheelFrame" innerRadius="0.0" outerRadius="7.0"/>
                <disengage file="$data/sounds/ui/gps/gpsDisengage_Fendt.ogg" volumeScale="0.75" linkNode="steeringWheelFrame" innerRadius="0.0" outerRadius="7.0"/>
                <lineEnd file="$data/sounds/ui/gps/gpsLineEnd_Fendt.ogg" volumeScale="0.75" linkNode="steeringWheelFrame" innerRadius="0.0" outerRadius="7.0"/>
            </sounds>
        </automaticSteering>
    </ai>

   <honk>
		<sound file="sounds/fendt_horn.ogg" linkNode="fanSoundRef" innerRadius="0.0" outerRadius="100.0" fadeOut="0.03"> 
			<volume indoor="0.35" outdoor="1.0" /> 
			<pitch indoor="1.0" outdoor="1.0" /> 
			<lowpassGain indoor="0.35" outdoor="1.0" />
		</sound>
	</honk>
</sounds>

