<?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">

    <!-- 26.11.2022: Agrostar-Sound by PeterAH (Modding-Welt) -->

    <motorized>
		<sounds>
        
            <!-- Start-Sound -->
            <motorStart file="sounds/deutz_agrostar_661_start.wav" volumeScale="0.9" innerRadius="12.5" outerRadius="80.0" linkNode="0>" >
                <volume indoor="0.88" outdoor="1.0" />
                <pitch indoor="1.0" outdoor="1.0" />
                <lowpassGain indoor="0.5" outdoor="1.0" />
            </motorStart>
            
            <!-- Stop-Sound -->
            <motorStop file="sounds/deutz_agrostar_661_stop.wav" volumeScale="0.9" innerRadius="12.5" outerRadius="80.0" linkNode="0>" >
                <volume indoor="0.88" outdoor="1.0" />
                <pitch indoor="1.0" outdoor="1.0" />
                <lowpassGain indoor="0.5" outdoor="1.0" />
            </motorStop>
            
            <!-- Idle-Sound -->
            <motor file="sounds/deutz_agrostar_661_idle_loop.wav" volumeScale="0.9" innerRadius="12.5" outerRadius="80.0" linkNode="0>" >
                <volume indoor="0.88" outdoor="1.0" >
                    <modifier type="MOTOR_RPM" value="0.00" modifiedValue="1.00" />
                    <modifier type="MOTOR_RPM" value="0.60" modifiedValue="0.00" />
                    <modifier type="ACCELERATE" value="0.0" modifiedValue="1.0" />
                    <modifier type="ACCELERATE" value="0.6" modifiedValue="1.5" />
                    <modifier type="CRUISECONTROL" value="0" modifiedValue="1.0" />
                    <modifier type="CRUISECONTROL" value="0.6" modifiedValue="1.5" />
                </volume>
                <pitch indoor="1.0" outdoor="1.0" >
                    <modifier type="MOTOR_RPM" value="0.00" modifiedValue="1.00" />
                    <modifier type="MOTOR_RPM" value="0.60" modifiedValue="2.50" />
                </pitch>
                <lowpassGain indoor="0.5" outdoor="1.0" />
            </motor>
			
			<!-- Run-Sound -->
			<motor file="sounds/deutz_agrostar_661_run_loop.wav" volumeScale="1.05" innerRadius="12.5" outerRadius="80.0" linkNode="0>" >
				<volume indoor="0.9" outdoor="1.0" >
                    <modifier type="MOTOR_RPM" value="0.00" modifiedValue="0.00" />
                    <modifier type="MOTOR_RPM" value="0.45" modifiedValue="1.00" />
                    <modifier type="MOTOR_LOAD" value="0.6" modifiedValue="1.0" />
                    <modifier type="MOTOR_LOAD" value="1.0" modifiedValue="0.6" />
				</volume>
				<pitch indoor="1.17" outdoor="1.17" >
                    <modifier type="MOTOR_RPM" value="0.25" modifiedValue="0.69" />
                    <modifier type="MOTOR_RPM" value="1.00" modifiedValue="1.00" />
            
                    <modifier type="SUSPENSION" value="-1.0" modifiedValue="0.95" />
                    <modifier type="SUSPENSION" value="-0.05" modifiedValue="0.98" />
                    <modifier type="SUSPENSION" value="0" modifiedValue="1.0" />
                    <modifier type="SUSPENSION" value="0.05" modifiedValue="1.02" />
                    <modifier type="SUSPENSION" value="1.0" modifiedValue="1.05" />
				</pitch>
				<lowpassGain indoor="0.5" outdoor="1.0" />
			</motor>

            <!-- Load-Sound -->
            <motor file="sounds/deutz_agrostar_661_load_loop.wav" volumeScale="1.8" innerRadius="12.5" outerRadius="80.0" linkNode="0>" >
                <volume indoor="0.84" outdoor="1.0" >
                    <modifier type="MOTOR_RPM" value="0.0" modifiedValue="0.00" />
                    <modifier type="MOTOR_RPM" value="0.20" modifiedValue="1.00" />
                    <modifier type="MOTOR_LOAD" value="0.0" modifiedValue="0.175" />
                    <modifier type="MOTOR_LOAD" value="0.1" modifiedValue="0.35" />
                    <modifier type="MOTOR_LOAD" value="1.0" modifiedValue="1.0" />
                    <modifier type="SPEED" value="21.0"  modifiedValue="1.0" />
                    <modifier type="SPEED" value="34.0"  modifiedValue="1.18" />
                    <modifier type="SPEED" value="37.0"  modifiedValue="1.18" />
                    <modifier type="SPEED" value="40.0"  modifiedValue="0.6" />

                    <modifier type="SUSPENSION" value="-1.0" modifiedValue="0.95" />
                    <modifier type="SUSPENSION" value="-0.05" modifiedValue="0.98" />
                    <modifier type="SUSPENSION" value="0" modifiedValue="1.0" />
                    <modifier type="SUSPENSION" value="0.05" modifiedValue="1.02" />
                    <modifier type="SUSPENSION" value="1.0" modifiedValue="1.05" />
                </volume> 
                <pitch indoor="1.12" outdoor="1.12" >
                    <modifier type="MOTOR_RPM" value="0.25" modifiedValue="0.78" />
                    <modifier type="MOTOR_RPM" value="1.00" modifiedValue="1.10" />
                </pitch>
                <lowpassGain indoor="0.5" outdoor="1.0" />
            </motor>

            <!-- Getriebe-Sound -->
            <gearbox file="sounds/deutz_agrostar_661_transmission.wav" innerRadius="12.5" outerRadius="80.0" linkNode="0>" >
                <volume indoor="0.37" outdoor="0.42" >
                    <modifier type="SPEED" value="0.0" modifiedValue="0.0" />
                    <modifier type="SPEED" value="40.0" modifiedValue="1.0" />
            
                    <modifier type="SUSPENSION" value="-0.01" modifiedValue="1.2" />
                    <modifier type="SUSPENSION" value="0" modifiedValue="1.0" />
                </volume>
                <pitch indoor="1.15" outdoor="1.15" >
                    <modifier type="SPEED" value="0.0" modifiedValue="0.8" />
                    <modifier type="SPEED" value="40.0" modifiedValue="1.2" />
                </pitch>
                <lowpassGain indoor="0.5" outdoor="1.0" />
            </gearbox>
			
            <!-- Getriebe-Sound beim Gas wegnehmen -->
            <retarder file="$data/sounds/vehicles/retarder/retarder_loop_01.wav" linkNode="0>" innerRadius="12.5" outerRadius="80.0" >
                <volume indoor="0.47" outdoor="0.58" >
                    <modifier type="SPEED" value="4.0" modifiedValue="0.0" />
                    <modifier type="SPEED" value="40.0" modifiedValue="1.0" />
                    <modifier type="ACCELERATE" value="0" modifiedValue="1.0" />
                    <modifier type="ACCELERATE" value="0.01" modifiedValue="0.0" />
                    <modifier type="CRUISECONTROL" value="0" modifiedValue="1.0" />
                    <modifier type="CRUISECONTROL" value="0.01" modifiedValue="0.0" />
                </volume>
                <pitch indoor="0.45" outdoor="0.45" >
                    <modifier type="SPEED" value="0.0" modifiedValue="0.8" />
                    <modifier type="SPEED" value="43.0" modifiedValue="3.0" />
                </pitch>
                <lowpassGain indoor="0.5" outdoor="1.0" />
            </retarder>
			
            <compressedAir template="compressedAir" volumeScale="0.5" />
            <airCompressorRun template="brakeCompressorMedium" volumeScale="0.4" />
            <airCompressorStop template="compressedAir" volumeScale="0.5" />

			<!-- Brake-Sound -->
			<compressedAir file="$data/sounds/vehicles/brake/brake_small.wav" innerRadius="12.5" outerRadius="80.0" linkNode="0>" >
				<volume indoor="2.1" outdoor="2.50">
					<modifier type="BRAKE_TIME" value="0.0" modifiedValue="0.0" />
					<modifier type="BRAKE_TIME" value="1.0" modifiedValue="1.0" />
				</volume>
				<pitch indoor="1.0" outdoor="1.0" />
				<lowpassGain indoor="0.85" outdoor="1.0" />
			</compressedAir>

			<!-- Regulator-Valve-Sound -->
			<airRelease file="$data/sounds/vehicles/compressor/regulator_valve_01.wav" innerRadius="12.5" outerRadius="80.0" linkNode="0>" >
				<volume indoor="0.38" outdoor="0.45" />
				<pitch indoor="1.0" outdoor="1.0" />
				<lowpassGain indoor="0.85" outdoor="1.0" />
			</airRelease>
			
			<gearGroupLeverStart template="gearDisengaged"/>
			<gearGroupLeverEnd template="gearEngaged"/>
			<gearLeverStart template="gearDisengaged"/>
			<gearLeverEnd template="gearEngaged"/>

		</sounds>

	</motorized>
	
	<enterable>
        <sounds>
            <rain template="rainInVehicle"  linkNodeOffset="0 2.5 -0.8" >
                <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"  linkNodeOffset="0 2.5 -0.8" volumeScale="1.5">
                <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"  />
            <turnLight template="switchTurnlight"  />
        </sounds>
    </lights>

    <attacherJoints>
        <sounds>
            <attach template="attach01" />
            <hydraulic template="hydraulicOpen02" />
        </sounds>
    </attacherJoints>

    <drivable>
        <sounds>
            <waterSplash template="waterSplash01" />
        </sounds>
    </drivable>
	
	<ai>
        <automaticSteering>
            <sounds>
                <engage template="gpsEngageJohnDeere"/>
                <disengage template="gpsDisengageJohnDeere"/>
                <lineEnd template="gpsLineEndJohnDeere"/>
            </sounds>
        </automaticSteering>
    </ai>

    <honk>
        <sound template="honkJohnDeere6250R" />
    </honk>
</sounds>