<?xml version="1.0"?>

<PropertyList>
  <fx>

<!-- Engines -->

    <engine>
      <name>engine0</name>
      <path>Sounds/jet.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[0]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[0]/prop-thrust</property>
        <factor type="double">0.00002</factor>
        <offset>0.01</offset>
      </volume>
      <pitch>
        <offset>0.0</offset>
      </pitch>
      <position>
        <x>23</x>
        <y>18.7</y>
        <z>-1</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>

    <engine>
      <name>whine0</name>
      <path>Sounds/whine.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[0]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[0]/n2</property>
        <factor>0.0002</factor>
      </volume>
      <pitch>
        <property>/engines/engine[0]/n2</property>
        <factor>0.0100</factor>
        <offset>0.00</offset>
      </pitch>
      <position>
        <x>23</x>
        <y>18.7</y>
        <z>-1</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>

    <engine>
      <name>engine1</name>
      <path>Sounds/jet.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[1]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[1]/prop-thrust</property>
        <factor type="double">0.00002</factor>
        <offset>0.01</offset>
      </volume>
      <pitch>
        <offset>0.04</offset>
      </pitch>
      <position>
        <x>23</x>
        <y>17.4</y>
        <z>-1</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>

    <engine>
      <name>whine1</name>
      <path>Sounds/whine.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[1]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[1]/n2</property>
        <factor>0.0002</factor>
      </volume>
      <pitch>
        <property>/engines/engine[1]/n2</property>
        <factor>0.010</factor>
        <offset>0.05</offset>
      </pitch>
      <position>
        <x>23</x>
        <y>17.4</y>
        <z>-1</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>

    <engine>
      <name>engine2</name>
      <path>Sounds/jet.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[2]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[2]/prop-thrust</property>
        <factor type="double">0.00002</factor>
        <offset>0.01</offset>
      </volume>
      <pitch>
        <offset>0.08</offset>
      </pitch>
      <position>
        <x>16.9</x>
        <y>10.8</y>
        <z>-0.6</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>

    <engine>
      <name>whine2</name>
      <path>Sounds/whine.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[2]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[2]/n2</property>
        <factor>0.0002</factor>
      </volume>
      <pitch>
        <property>/engines/engine[2]/n2</property>
        <factor>0.010</factor>
        <offset>0.10</offset>
      </pitch>
      <position>
        <x>16.9</x>
        <y>10.8</y>
        <z>-0.6</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>

    <engine>
      <name>engine3</name>
      <path>Sounds/jet.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[3]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[3]/prop-thrust</property>
        <factor type="double">0.00002</factor>
        <offset>0.01</offset>
      </volume>
      <pitch>
        <offset>0.12</offset>
      </pitch>
      <position>
        <x>16.9</x>
        <y>9.7</y>
        <z>-0.6</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>

    <engine>
      <name>whine3</name>
      <path>Sounds/whine.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[3]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[3]/n2</property>
        <factor>0.0002</factor>
      </volume>
      <pitch>
        <property>/engines/engine[3]/n2</property>
        <factor>0.010</factor>
        <offset>0.15</offset>
      </pitch>
      <position>
        <x>16.9</x>
        <y>9.7</y>
        <z>-0.6</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>

    <engine>
      <name>engine4</name>
      <path>Sounds/jet.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[4]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[4]/prop-thrust</property>
        <factor type="double">0.00002</factor>
        <offset>0.01</offset>
      </volume>
      <pitch>
        <offset>0.12</offset>
      </pitch>
      <position>
        <x>16.9</x>
        <y>-9.7</y>
        <z>-0.6</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>

    <engine>
      <name>whine4</name>
      <path>Sounds/whine.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[4]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[4]/n2</property>
        <factor>0.0002</factor>
      </volume>
      <pitch>
        <property>/engines/engine[4]/n2</property>
        <factor>0.010</factor>
        <offset>0.15</offset>
      </pitch>
      <position>
        <x>16.9</x>
        <y>-9.7</y>
        <z>-0.6</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>

    <engine>
      <name>engine5</name>
      <path>Sounds/jet.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[5]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[5]/prop-thrust</property>
        <factor type="double">0.00002</factor>
        <offset>0.01</offset>
      </volume>
      <pitch>
        <offset>0.08</offset>
      </pitch>
      <position>
        <x>16.9</x>
        <y>-10.8</y>
        <z>-0.6</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>

    <engine>
      <name>whine5</name>
      <path>Sounds/whine.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[5]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[5]/n2</property>
        <factor>0.0002</factor>
      </volume>
      <pitch>
        <property>/engines/engine[5]/n2</property>
        <factor>0.010</factor>
        <offset>0.10</offset>
      </pitch>
      <reference-dist>50</reference-dist>
      <position>
        <x>16.9</x>
        <y>-10.8</y>
        <z>-0.6</z>
      </position>
    </engine>

    <engine>
      <name>engine6</name>
      <path>Sounds/jet.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[6]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[6]/prop-thrust</property>
        <factor type="double">0.00002</factor>
        <offset>0.01</offset>
      </volume>
      <pitch>
        <offset>0.04</offset>
      </pitch>
      <position>
        <x>23.0</x>
        <y>-17.4</y>
        <z>-1</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>

    <engine>
      <name>whine6</name>
      <path>Sounds/whine.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[6]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[6]/n2</property>
        <factor>0.0002</factor>
      </volume>
      <pitch>
        <property>/engines/engine[6]/n2</property>
        <factor>0.010</factor>
        <offset>0.05</offset>
      </pitch>
      <position>
        <x>23.0</x>
        <y>-17.4</y>
        <z>-1</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>

    <engine>
      <name>engine7</name>
      <path>Sounds/jet.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[7]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[7]/prop-thrust</property>
        <factor type="double">0.00002</factor>
        <offset>0.01</offset>
      </volume>
      <pitch>
        <offset>0.0</offset>
      </pitch>
      <position>
        <x>23.0</x>
        <y>-18.7</y>
        <z>-1</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>

    <engine>
      <name>whine7</name>
      <path>Sounds/whine.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[7]/running</property>
      </condition>
      <volume>
        <property>/engines/engine[7]/n2</property>
        <factor>0.0002</factor>
      </volume>
      <pitch>
        <property>/engines/engine[7]/n2</property>
        <factor>0.010</factor>
        <offset>0.00</offset>
      </pitch>
      <position>
        <x>23.0</x>
        <y>-18.7</y>
        <z>-1</z>
      </position>
      <reference-dist>50</reference-dist>
    </engine>


<!-- Ground Rumble (nevermind, will never hear it over the engines) -->
<!--
    <rumble>
      <name>rumble0</name>
      <mode>looped</mode>
      <path>Sounds/rumble-rough.wav</path>
      <condition>
        <property>/gear/gear[0]/wow</property>
      </condition>
      <volume>
        <property>/velocities/groundspeed-kt</property>
        <factor>0.005</factor>
        <max>0.20</max>
      </volume>
    </rumble>
-->


<!-- Gear: keep simple, only need to model transit for 1 -->
    <gear>
      <name>gear0</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.0010</factor>
      </pitch>
    </gear>

    <gear>
      <name>gear-lock0</name>
      <path>Sounds/gear-lck.wav</path>
      <condition>
        <equals>
          <property>/gear/gear[0]/position-norm</property>
          <value>0</value>
        </equals>
      </condition>
    </gear>

    <gear>
      <name>gear-lock0a</name>
      <path>Sounds/gear-lck.wav</path>
      <condition>
        <equals>
          <property>/gear/gear[0]/position-norm</property>
          <value>1</value>
        </equals>
      </condition>
    </gear>


<!-- Squeal -->
    <squeal>
      <name>squeal0</name>
      <path>Sounds/squeal.wav</path>
      <condition>
        <property>/gear/gear[0]/wow</property>
        <less-than>
          <property>/velocities/vertical-speed-fps</property>
          <value>-1.0</value>
        </less-than>
      </condition>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <factor>0.001</factor>
      </volume>
      <pitch>
        <offset>0.8</offset>
      </pitch>
    </squeal>

    <squeal>
      <name>squeal1</name>
      <path>Sounds/squeal.wav</path>
      <condition>
        <property>/gear/gear[1]/wow</property>
        <less-than>
          <property>/velocities/vertical-speed-fps</property>
          <value>-1.0</value>
        </less-than>
      </condition>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <factor>0.001</factor>
      </volume>
      <pitch>
        <offset>0.8</offset>
      </pitch>
    </squeal>

    <squeal>
      <name>squeal2</name>
      <path>Sounds/squeal.wav</path>
      <condition>
        <property>/gear/gear[2]/wow</property>
        <less-than>
          <property>/velocities/vertical-speed-fps</property>
          <value>-1.0</value>
        </less-than>
      </condition>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <factor>0.001</factor>
      </volume>
      <pitch>
        <offset>0.8</offset>
      </pitch>
    </squeal>

    <squeal>
      <name>squeal3</name>
      <path>Sounds/squeal.wav</path>
      <condition>
        <property>/gear/gear[3]/wow</property>
        <less-than>
          <property>/velocities/vertical-speed-fps</property>
          <value>-1.0</value>
        </less-than>
      </condition>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <factor>0.001</factor>
      </volume>
      <pitch>
        <offset>0.8</offset>
      </pitch>
    </squeal>

<!-- Flaps -->
    <flap>
      <name>flaps</name>
      <mode>in-transit</mode>
      <path>Sounds/flaps.wav</path>
      <property>/surface-positions/left-flap-pos-norm</property>
      <volume>
        <factor>0.15</factor>
      </volume>
    </flap>

    <flap>
      <name>flaps</name>
      <mode>in-transit</mode>
      <path>Sounds/flaps.wav</path>
      <property>/surface-positions/right-flap-pos-norm</property>
      <volume>
        <factor>0.25</factor>
      </volume>
    </flap>

<!-- Spoilers -->
    <spoiler>
      <name>spoilers</name>
      <mode>in-transit</mode>
      <path>Sounds/flaps.wav</path>
      <property>/surface-positions/left-spoiler-pos-norm</property>
      <volume>
        <factor>0.15</factor>
      </volume>
    </spoiler>

    <spoiler>
      <name>spoilers</name>
      <mode>in-transit</mode>
      <path>Sounds/flaps.wav</path>
      <property>/surface-positions/right-spoiler-pos-norm</property>
      <volume>
        <factor>0.25</factor>
      </volume>
    </spoiler>

    <overspeed>
      <name>overspeed</name>
      <path>Sounds/overspeed2.wav</path>
      <mode>looped</mode>
      <condition>
        <or>
          <greater-than>
            <property n="0">/velocities/airspeed-kt</property>
            <property n="1">/limits/vmo</property>
          </greater-than>
          <greater-than>
            <property n="0">/velocities/mach</property>
            <property n="1">/limits/mmo</property>
          </greater-than>
        </or>
      </condition>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <max>0.4</max>
      </volume>
    </overspeed>

    <gear-overspeed>
      <name>gear-overspeed</name>
      <path>Sounds/overspeed.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/gear/gear[0]/position-norm</property>
        <greater-than>
          <property n="0">/velocities/airspeed-kt</property>
          <property n="1">/limits/max-gear-extension-speed</property>
        </greater-than>
      </condition>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <max>0.4</max>
      </volume>
    </gear-overspeed>

    <flaps-overspeed>
      <name>flaps-overspeed</name>
      <path>Sounds/overspeed.wav</path>
      <mode>looped</mode>
      <condition>
        <greater-than>
          <property n="0">/surface-positions/flap-pos-norm</property>
          <property n="1">/limits/max-flap-extension-speed[0]/flaps</property>
        </greater-than>
        <greater-than>
          <property n="0">/velocities/airspeed-kt</property>
          <property n="1">/limits/max-flap-extension-speed[0]/speed</property>
        </greater-than>
      </condition>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <max>0.4</max>
      </volume>
    </flaps-overspeed>
    
    <stall>
      <name>stall</name>
      <path>Sounds/stall.wav</path>
      <mode>looped</mode>
      <condition>
        <greater-than>
          <property>/velocities/airspeed-kt</property>
          <value>40</value>
        </greater-than>
        <greater-than>
          <property>/orientation/alpha-deg</property>
          <value>10.0</value>
        </greater-than>
      </condition>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <max>0.10</max>
      </volume>
    </stall>

  </fx>

</PropertyList>
