<?xml version="1.0" encoding="ISO-8859-1"?>

<PropertyList>

  <fx>

    <!-- Left engine -->
    <engine>
      <name>left-engine-start</name>
      <mode>once</mode>
      <path>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>left-engine-loop</name>
      <mode>looped</mode>
      <path>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>

    <engine>
      <name>left-exhaust-loop</name>
      <mode>looped</mode>
      <path>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_left</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_left</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>

    <!-- Right engine -->
    <engine>
      <name>right-engine-start</name>
      <mode>once</mode>
      <path>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>right-engine-loop</name>
      <mode>looped</mode>
      <path>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>right-exhaust-loop</name>
      <mode>looped</mode>
      <path>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>

    <!-- outside -->
    <!-- rotor -->
    <rotor>
      <name>rotor</name>
      <mode>looped</mode>
      <path>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>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>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>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>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>

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

    <!-- DOORS -->
    <door>
      <name>open door</name>
      <mode>once</mode>
      <path>door_open.wav</path>
      <condition>
        <greater-than>
          <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
          <property>sim/multiplay/generic/float[25]</property>
          <value>0</value>
        </greater-than>
      </condition>
      <volume>
        <factor>1</factor>
        <max>1.0</max>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>Door closed</name>
      <path>door_close.wav</path>
      <condition>
        <less-than>
          <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
          <property>sim/multiplay/generic/float[25]</property>
          <value>0.03</value>
        </less-than>
      </condition>
      <volume>
        <factor>1</factor>
        <max>1.0</max>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>Steps door</name>
      <mode>once</mode>
      <path>door_open.wav</path>
      <condition>
        <greater-than>
          <!-- <property>sim/model/door-positions/steps/position-norm</property> -->
          <property>sim/multiplay/generic/float[27]</property>
          <value>0</value>
        </greater-than>
      </condition>
      <volume>
        <factor>1</factor>
        <max>1.0</max>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>Steps closed</name>
      <path>door_close.wav</path>
      <condition>
        <less-than>
          <!-- <property>sim/model/door-positions/steps/position-norm</property> -->
          <property>sim/multiplay/generic/float[27]</property>
          <value>0.03</value>
        </less-than>
      </condition>
      <volume>
        <factor>1</factor>
        <max>1.0</max>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>Bay door</name>
      <mode>once</mode>
      <path>door_open.wav</path>
      <condition>
        <greater-than>
          <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
          <property>sim/multiplay/generic/float[26]</property>
          <value>0</value>
        </greater-than>
      </condition>
      <volume>
        <factor>1</factor>
        <max>1.0</max>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>Bay close</name>
      <path>door_close.wav</path>
      <condition>
        <less-than>
          <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
          <property>sim/multiplay/generic/float[26]</property>
          <value>0.03</value>
        </less-than>
      </condition>
      <volume>
        <factor>1</factor>
        <max>1.0</max>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <flare>
      <name>Flares</name>
      <path>Flare.wav</path>
      <mode>looped</mode>
      <condition>
        <!-- <property>controls/armament/flares-release</property> -->
        <property>sim/multiplay/generic/int[11]</property>
      </condition>
      <volume>
        <!-- <property>sim/current-view/internal</property> -->
        <!-- <factor>0.25</factor> -->
        <factor>1</factor>
        <max>1.0</max>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </flare>

    <rain>
      <name>rain</name>
      <mode>looped</mode>
      <path>rain.wav</path>
      <condition>
        <greater-than>
          <property>environment/rain-norm</property>
          <value>0.2</value>
        </greater-than>
      </condition>
      <volume>
        <property>environment/rain-norm</property>
        <factor>1.00</factor>
        <offset>0.00</offset>
        <min>0.4</min>
        <max>0.9</max>
      </volume>
      <pitch>
        <property>velocities/airspeed-kt</property>
        <factor>0.001</factor>
        <offset>1.0</offset>
      </pitch>
    </rain>

  </fx>

</PropertyList>
