<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

  <fx>

    <engine>
      <name>right-engine-start</name>
      <mode>once</mode>
      <path>Aircraft/VMX22-Osprey/Sounds/v22_turbine_strt_out.wav</path>
      <condition>
        <greater-than>
          <property>sim/model/v22/state</property>
          <value>0</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.12</factor>
      </volume>
      <position>
        <x> 1.50 </x>
        <y> 7.00 </y>
        <z> 0.00 </z>
      </position>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <engine>
      <name>left-engine-start</name>
      <mode>once</mode>
      <path>Aircraft/VMX22-Osprey/Sounds/v22_turbine_strt_out.wav</path>
      <condition>
        <greater-than>
          <property>sim/model/v22/state</property>
          <value>1</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.12</factor>
      </volume>
      <position>
        <x>  1.50 </x>
        <y> -7.00 </y>
        <z>  0.00 </z>
      </position>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <engine>
      <name>right-engine-loop</name>
      <mode>looped</mode>
      <path>Aircraft/VMX22-Osprey/Sounds/v22_turbine_out.wav</path>
      <condition>
        <greater-than>
          <property>sim/model/v22/state</property>
          <value>0</value>
        </greater-than>
      </condition>
      <volume>
        <property>sim/model/v22/engine_right</property>
        <factor>3</factor>
        <max>0.25</max>
        <min>0</min>
      </volume>
      <volume>
        <property>rotors/gear/torque-sound-filtered</property>
      </volume>
      <position>
        <x> 2.50 </x>
        <y> 7.00 </y>
        <z> 1.00 </z>
      </position>
      <pitch>
        <property>sim/model/v22/engine_right</property>
        <factor>1</factor>
        <offset>-0.0</offset>
        <max>2.0</max>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <engine>
      <name>exhaust-loop</name>
      <mode>looped</mode>
      <path>Aircraft/VMX22-Osprey/Sounds/v22_exh.wav</path>
      <condition>
        <greater-than>
          <property>sim/model/v22/state</property>
          <value>0</value>
        </greater-than>
      </condition>
      <volume>
        <property>sim/model/v22/engine_right</property>
        <factor>1.5</factor>
        <min>0</min>
        <max>0.25</max>
      </volume>
      <volume>
        <property>rotors/gear/torque-sound-filtered</property>
      </volume>
      <position>
        <x> 2.50 </x>
        <y> 0.00 </y>
        <z> 1.00 </z>
      </position>
      <pitch>
        <property>sim/model/v22/engine_right</property>
        <factor>1</factor>
        <offset>-0.0</offset>
        <max>2.0</max>
      </pitch>
      <orientation>
        <x>  1 </x>
        <y>  0 </y>
        <z> -1 </z>
        <inner-angle>50</inner-angle>
        <outer-angle>130</outer-angle>
        <outer-gain>0.6</outer-gain>
      </orientation>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <engine>
      <name>left-engine-loop</name>
      <mode>looped</mode>
      <path>Aircraft/VMX22-Osprey/Sounds/v22_turbine_out.wav</path>
      <condition>
        <greater-than>
          <property>sim/model/v22/state</property>
          <value>1</value>
        </greater-than>
      </condition>
      <volume>
        <property>sim/model/v22/engine_left</property>
        <factor>3</factor>
        <min>0</min>
        <max>0.25</max>
      </volume>
      <volume>
        <property>rotors/gear/torque-sound-filtered</property>
      </volume>
      <position>
        <x>  2.50 </x>
        <y> -7.00 </y>
        <z>  1.00 </z>
      </position>
      <pitch>
        <property>sim/model/v22/engine_left</property>
        <factor>1.03</factor>
        <offset>-0.0</offset>
        <max>2.0</max>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <!-- outside -->
    <!-- rotor -->
    <rotor>
      <name>rotor</name>
      <mode>looped</mode>
      <path>Aircraft/VMX22-Osprey/Sounds/v22_flap.wav</path>
      <condition>
        <and>
          <greater-than>
            <property>rotors/main/rpm</property>
            <value>5</value>
          </greater-than>
          <not>
            <property>sim/crashed</property>
          </not>
          <not>
            <equals>
              <property>sim/current-view/view-number</property>
              <value>99</value>
            </equals>
          </not>
        </and>
      </condition>
      <volume>
        <property>rotors/main/stall-filtered</property>
      </volume>
      <pitch>
        <property>rotors/main/rpm</property>
        <factor>0.00243</factor>
        <offset>-0.</offset>
        <max>2.5</max>
      </pitch>
      <position>
        <x> 1.5 </x>
        <y> 0.0 </y>
        <z> 2.0 </z>
      </position>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </rotor>
	
			

    <wing>
      <name>wingrotation</name>
      <mode>looped</mode>
      <path>Aircraft/VMX22-Osprey/Sounds/v22_wing_rotate.wav</path>
      <condition>
        <and>
          <greater-than>
            <property>sim/model/v22/wing_rotation_speed</property>
            <value>0.01</value>
          </greater-than>
          <not>
            <property>sim/crashed</property>
          </not>
        </and>
      </condition>
      <volume>
        <property>sim/model/v22/wing_rotation_speed</property>
        <factor>0.1</factor>
        <min>0</min>
        <max>1.0</max>
      </volume>
      <pitch>
        <property>sim/model/v22/wing_rotation_speed</property>
        <factor>0.1</factor>
        <max>0.5</max>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </wing>

    <blade_fold>
      <name>bladefold</name>
      <mode>looped</mode>
      <path>Aircraft/VMX22-Osprey/Sounds/v22_blade_fold.wav</path>
      <condition>
        <and>
          <greater-than>
            <property>sim/model/v22/blade_folding_speed</property>
            <value>0.0001</value>
          </greater-than>
          <not>
           <property>sim/crashed</property>
          </not>
        </and>
      </condition>
      <volume>
        <property>sim/model/v22/blade_folding_speed</property>
        <factor>10</factor>
        <min>0</min>
        <max>0.5</max>
      </volume>
      <pitch>
        <property>sim/model/v22/blade_folding_speed</property>
        <factor>15</factor>
        <max>0.75</max>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </blade_fold>

    <flap>
      <name>flap</name>
      <mode>looped</mode>
      <path>Aircraft/VMX22-Osprey/Sounds/Flaps.wav</path>
      <condition>
        <and>
          <greater-than>
            <property>sim/model/v22/flap_speed</property>
            <value>0.0001</value>
          </greater-than>
          <not>
            <property>sim/crashed</property>
          </not>
        </and>
      </condition>
      <volume>
        <property>sim/model/v22/flap_speed</property>
        <factor>10</factor>
        <min>0</min>
        <max>0.25</max>
      </volume>
      <pitch>
        <property>sim/model/v22/flap_speed</property>
        <factor>25</factor>
        <min>0</min>
        <max>1</max>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </flap>

    <engine_tilt>
      <name>enginetilt</name>
      <mode>looped</mode>
      <path>Aircraft/VMX22-Osprey/Sounds/servo.wav</path>
      <condition>
        <and>
          <greater-than>
            <property>sim/model/v22/animation_tilt_speed</property>
            <value>0.01</value>
          </greater-than>
          <not>
            <property>sim/crashed</property>
          </not>
        </and>
      </condition>
      <volume>
        <property>sim/model/v22/animation_tilt_speed</property>
        <factor>.1</factor>
        <min>0</min>
        <max>0.35</max>
      </volume>
      <pitch>
        <property>sim/model/v22/animation_tilt_speed</property>
        <factor>.2</factor>
        <max>0.75</max>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine_tilt>

    <overspeed>
      <name>overspeed</name>
      <mode>looped</mode>
      <path>Sounds/overspeed.wav</path>
      <condition>
        <greater-than>
          <property>velocities/airspeed-kt</property>
          <value>315</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.2</factor>
      </volume>
      <pitch>
        <factor>0.1</factor>
      </pitch>
      <reference-dist>1.0</reference-dist>
      <max-dist>2.0</max-dist>
    </overspeed>

    <rumble>
      <name>rumble</name>
      <mode>looped</mode>
      <path>Sounds/rumble.wav</path>
      <condition>
        <or>
          <property>/gear/gear[0]/wow</property>
          <property>/gear/gear[1]/wow</property>
          <property>/gear/gear[2]/wow</property>
        </or>
      </condition>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <type>log</type>
        <factor>0.25</factor>
      </volume>
      <position>
        <x> -0.1 </x>
        <y>  0.0 </y>
        <z> -1.0 </z>
      </position>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </rumble>

    <squeal>
      <name>squeal</name>
      <path>Sounds/squeal.wav</path>
      <condition>
        <property>/gear/gear[0]/wow</property>
      </condition>
      <volume>
        <property>/velocities/speed-down-fps</property>
        <factor>0.5</factor>
        <max>1.0</max>
      </volume>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <factor>0.01</factor>
        <max>1.0</max>
      </volume>
      <volume>
        <internal>dt_stop</internal>
        <factor>0.5</factor>
        <max>1.0</max>
      </volume>
      <pitch>
        <property>/velocities/airspeed-kt</property>
        <factor>0.0025</factor>
        <offset>1.2</offset>
      </pitch>
      <position>
        <x> 7.5 </x>
        <y> 0 </y>
        <z> -3 </z>
      </position>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </squeal>

    <squeal>
      <name>squeal1</name>
      <path>Sounds/squeal.wav</path>
      <condition>
        <property>/gear/gear[1]/wow</property>
      </condition>
      <volume>
        <property>/velocities/speed-down-fps</property>
        <factor>0.5</factor>
        <max>1.0</max>
      </volume>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <factor>0.01</factor>
        <max>1.0</max>
      </volume>
      <volume>
        <internal>dt_stop</internal>
        <factor>0.5</factor>
        <max>1.0</max>
      </volume>
      <pitch>
        <property>/velocities/airspeed-kt</property>
        <factor>0.0025</factor>
        <offset>1.2</offset>
      </pitch>
      <position>
        <x> 0.5 </x>
        <y> 2 </y>
        <z> -3 </z>
      </position>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </squeal>

    <squeal>
      <name>squeal2</name>
      <path>Sounds/squeal.wav</path>
      <condition>
        <property>/gear/gear[2]/wow</property>
      </condition>
      <volume>
        <property>/velocities/speed-down-fps</property>
        <factor>0.5</factor>
        <max>1.0</max>
      </volume>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <factor>0.01</factor>
        <max>1.0</max>
      </volume>
      <volume>
        <internal>dt_stop</internal>
        <factor>0.5</factor>
        <max>1.0</max>
      </volume>
      <pitch>
        <property>/velocities/airspeed-kt</property>
        <factor>0.0025</factor>
        <offset>1.2</offset>
      </pitch>
      <position>
        <x>  0.5 </x>
        <y> -2.0 </y>
        <z> -3.0 </z>
      </position>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </squeal>
	
	<!-- cargo upper door sounds -->
	<door>
      <name>cargodoorup</name>
      <mode>in-transit</mode>
      <path>Sounds/gear.wav</path>
      <property>instrumentation/doors/cargodoorup/position-norm</property>
      <pitch>
        <internal>dt_play</internal>
        <offset>1.0</offset>
        <factor>-0.001</factor>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>cargodoorup-lock</name>
      <path>Sounds/gear-lck.wav</path>
      <condition>
        <equals>
          <property>instrumentation/doors/cargodoorup/position-norm</property>
          <value>0</value>
        </equals>
      </condition>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>
	
	<!-- cargo door sounds -->
	<door>
      <name>cargodoor</name>
      <mode>in-transit</mode>
      <path>Sounds/gear.wav</path>
      <property>instrumentation/doors/cargodoor/position-norm</property>
      <pitch>
        <internal>dt_play</internal>
        <offset>1.0</offset>
        <factor>-0.001</factor>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>cargodoor-lock</name>
      <path>Sounds/gear-lck.wav</path>
      <condition>
        <equals>
          <property>instrumentation/doors/cargodoor/position-norm</property>
          <value>0</value>
        </equals>
      </condition>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>
	
	<!-- crew upper door sounds -->
	<door>
      <name>crewdoorup</name>
      <mode>in-transit</mode>
      <path>Sounds/gear.wav</path>
      <property>instrumentation/doors/crewup/position-norm</property>
      <pitch>
        <internal>dt_play</internal>
        <offset>1.0</offset>
        <factor>-0.001</factor>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>crewdoorup-lock</name>
      <path>Sounds/gear-lck.wav</path>
      <condition>
        <equals>
          <property>instrumentation/doors/crewup/position-norm</property>
          <value>0</value>
        </equals>
      </condition>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>
	
	<!-- crew door sounds -->
	<door>
      <name>crewdoor</name>
      <mode>in-transit</mode>
      <path>Sounds/gear.wav</path>
      <property>instrumentation/doors/crew/position-norm</property>
      <pitch>
        <internal>dt_play</internal>
        <offset>1.0</offset>
        <factor>-0.001</factor>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>crewdoor-lock</name>
      <path>Sounds/gear-lck.wav</path>
      <condition>
        <equals>
          <property>instrumentation/doors/crew/position-norm</property>
          <value>0</value>
        </equals>
      </condition>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>
	
	<!-- cockpi door sounds 
	<door>
      <name>door</name>
      <mode>in-transit</mode>
      <path>Sounds/gear.wav</path>
      <property>instrumentation/doors/cockpitdoor/position-norm</property>
      <pitch>
        <internal>dt_play</internal>
        <offset>1.0</offset>
        <factor>-0.001</factor>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door> -->

    <door>
      <name>cockpitdoor-lock</name>
      <path>Sounds/door_close.wav</path>
      <condition>
        <equals>
          <property>instrumentation/doors/cockpitdoor/position-norm</property>
          <value>0</value>
        </equals>
      </condition>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>
	
	<!-- airrefule sounds -->
	<door>
      <name>airrefule-move</name>
      <mode>in-transit</mode>
      <path>Aircraft/VMX22-Osprey/Sounds/servo.wav</path>
     
			<property>instrumentation/doors/airrefule/position-norm</property>
         
      <volume>
        <factor>0.25</factor>
      </volume>
	  <pitch>
        <internal>dt_play</internal>
        <offset>1.0</offset>
        <factor>-0.001</factor>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

	
	<!-- gear sounds -->
    <gear>
      <name>gear</name>
      <mode>in-transit</mode>
      <path>Sounds/gear.wav</path>
      <property>/gear/gear[0]/position-norm</property>
      <pitch>
        <internal>dt_play</internal>
        <offset>1.0</offset>
        <factor>-0.001</factor>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </gear>

    <gear>
      <name>gear-lock</name>
      <path>Sounds/gear-lck.wav</path>
      <condition>
        <equals>
          <property>/gear/gear[0]/position-norm</property>
          <value>0</value>
        </equals>
      </condition>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </gear>

    <crash>
      <name>intense ground contact</name>
      <mode>once</mode>
      <path>Sounds/crash.wav</path>
      <property>sim/crashed</property>
      <volume>
        <factor>1</factor>
      </volume>
      <pitch>
        <factor>0.1</factor>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </crash>

  </fx>

</PropertyList>
