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

<PropertyList>
  
  <fx>
    
    <!-- ENGINE START -->
    <crank>
      <name>crank</name>
      <path>Aircraft/Ju-87/Sounds/starter.wav</path>
      <condition>
        <property>engines/engine[0]/cranking</property>
        <less-than>
          <property>engines/engine[0]/rpm</property>
          <value>350</value>
        </less-than>
      </condition>
      <volume>2.1</volume>
      <pitch>
        <property>engines/engine[0]/cranking</property>
        <factor>0.75</factor>
      </pitch>
      <position>
        <x-m> 0.96</x-m>
        <y-m> 0.00</y-m>
        <z-m> 0.00</z-m>
      </position>
    </crank>
    
    <!-- ENGINE RUNNING -->
    <enginehi>
      <name>engine-hi</name>
      <mode>looped</mode>
      <path>Aircraft/Ju-87/Sounds/Slow.wav</path>
      <condition>
        <property>engines/engine[0]/running</property>
        <less-than>
          <property>engines/engine[0]/rpm</property>
          <value>5000</value>
        </less-than>
        <not>
          <and>
            <property>/sim/current-view/internal</property>
            <less-than>
              <property>controls/canopy/position-norm</property>
              <value>0.1</value>
            </less-than>
          </and>
        </not>
      </condition>
      <volume>
        <property>engines/engine[0]/thrust-lbs</property>
        <factor>0.0023</factor>
        <offset>-0.2</offset>
        <min>0.25</min>
        <max>1.5</max>
      </volume>
      <pitch>
        <property>engines/engine[0]/rpm</property>
        <factor>0.0002</factor>
        <min>0.1</min>
        <max>2.5</max>
      </pitch>
      <position>
        <x-m> 0.96</x-m>
        <y-m> 0.00</y-m>
        <z-m> 0.00</z-m>
      </position>
    </enginehi>
    
    <enginehi>
      <name>engine-hi in</name>
      <mode>looped</mode>
      <path>Aircraft/Ju-87/Sounds/Slow.wav</path>
      <condition>
        <property>engines/engine[0]/running</property>
        <less-than>
          <property>engines/engine[0]/rpm</property>
          <value>5000</value>
        </less-than>
        <and>
          <property>/sim/current-view/internal</property>
          <less-than>
            <property>controls/canopy/position-norm</property>
            <value>0.1</value>
          </less-than>
        </and>
      </condition>
      <volume>
        <property>engines/engine[0]/thrust-lbs</property>
        <factor>0.0015</factor>
        <offset>-0.2</offset>
        <min>0.25</min>
        <max>0.66</max>
      </volume>
      <pitch>
        <property>engines/engine[0]/rpm</property>
        <factor>0.0002</factor>
        <min>0.1</min>
        <max>2.5</max>
      </pitch>
      <position>
        <x-m> 0.96</x-m>
        <y-m> 0.00</y-m>
        <z-m> 0.00</z-m>
      </position>
    </enginehi>
    
    <enginelo>
      <name>engine-lo</name>
      <mode>looped</mode>
      <path>Aircraft/Ju-87/Sounds/Slow.wav</path>
      <condition>
        <property>engines/engine[0]/running</property>
        <greater-than>
          <property>engines/engine[0]/rpm</property>
          <value>110</value>
        </greater-than>
        <not>
          <and>
            <property>/sim/current-view/internal</property>
            <less-than>
              <property>controls/canopy/position-norm</property>
              <value>0.1</value>
            </less-than>
          </and>
        </not>
      </condition>
      <volume>
        <property>engines/engine[0]/mp-inhg</property>
        <factor>0.05</factor>
        <offset>0.05</offset>
        <min>0.1</min>
        <max>2.5</max>
      </volume>
      <pitch>
        <property>engines/engine[0]/rpm</property>
        <factor>0.00015</factor>
        <min>0.01</min>
        <max>6.1</max>
      </pitch>
      <position>
        <x-m> 0.96</x-m>
        <y-m> 0.00</y-m>
        <z-m> 0.00</z-m>
      </position>
    </enginelo>
    
    <enginelo>
      <name>engine-lo in</name>
      <mode>looped</mode>
      <path>Aircraft/Ju-87/Sounds/Slow.wav</path>
      <condition>
        <property>engines/engine[0]/running</property>
        <greater-than>
          <property>engines/engine[0]/rpm</property>
          <value>110</value>
        </greater-than>
        <and>
          <property>/sim/current-view/internal</property>
          <less-than>
            <property>controls/canopy/position-norm</property>
            <value>0.1</value>
          </less-than>
        </and>
      </condition>
      <volume>
        <property>engines/engine[0]/mp-inhg</property>
        <factor>0.04</factor>
        <offset>0.05</offset>
        <min>0.1</min>
        <max>1.8</max>
      </volume>
      <pitch>
        <property>engines/engine[0]/rpm</property>
        <factor>0.00015</factor>
        <min>0.01</min>
        <max>6.1</max>
      </pitch>
      <position>
        <x-m> 0.96</x-m>
        <y-m> 0.00</y-m>
        <z-m> 0.00</z-m>
      </position>
    </enginelo>
    
    <engine-idle>
      <name>engine-idle</name>
      <mode>looped</mode>
      <path>Aircraft/Ju-87/Sounds/engine.wav</path>
      <condition>
        <property>engines/engine[0]/running</property>
        <greater-than>
          <property>engines/engine[0]/rpm</property>
          <value>100</value>
        </greater-than>
        <not>
          <and>
            <property>/sim/current-view/internal</property>
            <less-than>
              <property>controls/canopy/position-norm</property>
              <value>0.1</value>
            </less-than>
          </and>
        </not>
      </condition>
      <volume>
        <property>engines/engine[0]/mp-inhg</property>
        <offset>1.8</offset>
        <factor>-0.0275</factor>
        <min>0.6</min>
        <max>1.8</max>
      </volume>
      <pitch>
        <property>engines/engine[0]/rpm</property>
        <factor>0.00066</factor>
        <offset>0.6</offset>
        <min>0.6</min>
        <max>3.6</max>
      </pitch>
      <position>
        <x-m> 0.96</x-m>
        <y-m> 0.00</y-m>
        <z-m> 0.00</z-m>
      </position>
    </engine-idle>
    
    <engine-idle>
      <name>engine-idle in</name>
      <mode>looped</mode>
      <path>Aircraft/Ju-87/Sounds/engine.wav</path>
      <condition>
        <property>engines/engine[0]/running</property>
        <greater-than>
          <property>engines/engine[0]/rpm</property>
          <value>100</value>
        </greater-than>
        <and>
          <property>/sim/current-view/internal</property>
          <less-than>
            <property>controls/canopy/position-norm</property>
            <value>0.1</value>
          </less-than>
        </and>
      </condition>
      <volume>
        <property>engines/engine[0]/mp-inhg</property>
        <offset>1.5</offset>
        <factor>-0.033</factor>
        <min>0.45</min>
        <max>1.5</max>
      </volume>
      <pitch>
        <property>engines/engine[0]/rpm</property>
        <factor>0.00066</factor>
        <offset>0.6</offset>
        <min>0.6</min>
        <max>3.6</max>
      </pitch>
      <position>
        <x-m> 0.96</x-m>
        <y-m> 0.00</y-m>
        <z-m> 0.00</z-m>
      </position>
    </engine-idle>
    
    <!-- ENGINE STOP -->
    <enginestop>
      <name>engineoff</name>
      <path>Aircraft/Ju-87/Sounds/shutdown.wav</path>
      <type>raise</type>
      <condition>
        <and>
          <greater-than>
            <property>engines/engine[0]/rpm</property>
            <value>50</value>
          </greater-than>
          <not>
            <property>engines/engine[0]/running</property>
          </not>
          <not>
            <property>engines/engine[0]/cranking</property>
          </not>
        </and>
      </condition>
      <volume>
        <property>engines/engine[0]/rpm</property>
        <factor>0.03</factor>
        <offset>-0.20</offset>
        <min>0.25</min>
        <max>1.5</max>
      </volume>
      <volume>
        <property>/sim/current-view/internal</property>
        <offset>0.65</offset>
        <factor>-0.2</factor>
      </volume>
      <pitch>
        <property>engines/engine[0]/rpm</property>
        <factor>0.0.00066</factor>
        <min>0.0</min>
        <max>1.5</max>
      </pitch>
      <position>
        <x-m> 0.96</x-m>
        <y-m> 0.00</y-m>
        <z-m> 0.00</z-m>
      </position>
    </enginestop>
    <!-- ENGINE COUGH -->
    <enginecough>
      <name>cough</name>
      <path>Aircraft/Ju-87/Sounds/coughing.wav</path>
      <type>fall</type>
      <condition>
        <and>
          <greater-than>
            <property>engines/engine[0]/rpm</property>
            <value>300</value>
          </greater-than>
          <not>
            <property>engines/engine[0]/running</property>
          </not>
          <not>
            <property>engines/engine[0]/cranking</property>
          </not>
        </and>
      </condition>
      <volume>
        <property>engines/engine[0]/rpm</property>
        <factor>0.01</factor>
        <offset>-0.20</offset>
        <min>0.15</min>
        <max>1.5</max>
      </volume>
      <volume>
        <property>/sim/current-view/internal</property>
        <offset>0.65</offset>
        <factor>-0.2</factor>
      </volume>
      <pitch>
        <property>engines/engine[0]/rpm</property>
        <factor>0.00000025</factor>
        <min>0.0</min>
        <max>1.5</max>
      </pitch>
      <position>
        <x-m> 0.96</x-m>
        <y-m> 0.00</y-m>
        <z-m> 0.00</z-m>
      </position>
    </enginecough>
    <!-- GEAR RUMBLE -->
    <rumbleL>
      <name>rumble-left</name>
      <mode>looped</mode>
      <path>Sounds/rumble.wav</path>
      <condition>
        <and>
          <property>gear/gear[0]/wow</property>
          <greater-than>
            <property>gear/gear[0]/rollspeed-ms</property>
            <value>1</value>
          </greater-than>
        </and>
      </condition>
      <volume>
        <property>gear/gear[0]/rollspeed-ms</property>
        <type>log</type>
        <factor>0.08</factor>
      </volume>
      <pitch>
        <property>gear/gear[0]/rollspeed-ms</property>
        <type>log</type>
        <factor>0.70</factor>
      </pitch>
      <position>
        <x-m> 2.573</x-m>
        <y-m>-1.637</y-m>
        <z-m>-1.595</z-m>
      </position>
      <!--<reference-dist>3</reference-dist>
      <max-dist>10</max-dist>-->
    </rumbleL>
    
    <rumbleR>
      <name>rumble-right</name>
      <mode>looped</mode>
      <path>Sounds/rumble.wav</path>
      <condition>
        <property>gear/gear[1]/wow</property>
        <greater-than>
          <property>gear/gear[1]/rollspeed-ms</property>
          <value>1</value>
        </greater-than>
      </condition>
      <volume>
        <property>gear/gear[1]/rollspeed-ms</property>
        <type>log</type>
        <factor>0.08</factor>
      </volume>
      <pitch>
        <property>gear/gear[1]/rollspeed-ms</property>
        <type>log</type>
        <factor>0.70</factor>
      </pitch>
      <position>
        <x-m> 2.573</x-m>
        <y-m> 1.637</y-m>
        <z-m>-1.595</z-m>
      </position>
      <!--<reference-dist>3</reference-dist>
      <max-dist>10</max-dist>-->
    </rumbleR>
    
    <!-- GEAR SQUEAL -->
    <squeal>
      <name>squeal</name>
      <path>Sounds/squeal.wav</path>
      <condition>
        <or>
          <property>gear/gear[0]/wow</property>
          <property>gear/gear[1]/wow</property>
        </or>
      </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.05</factor>
        <max>1.0</max>
      </volume>
      <pitch>
        <property>velocities/airspeed-kt</property>
        <factor>0.0025</factor>
        <offset>0.5</offset>
        <max>1.0</max>
      </pitch>
      <!--<reference-dist>20</reference-dist>
      <max-dist>50</max-dist>-->
    </squeal>
    
    <!-- FLAPS -->
    <flap>
      <name>flaps</name>
      <mode>in-transit</mode>
      <path>Sounds/flaps.wav</path>
      <property>/surface-positions/flap-pos-norm</property>
      <volume>
        <factor> 0.15 </factor>
      </volume>
      <position>
        <x> 1.0 </x>
        <y> 0.0 </y>
        <z> 1.0 </z>
      </position>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </flap>
    
    <!-- CANOPY -->
    <canopyL>
      <name>canopy-openl</name>
      <mode>in-transit</mode>
      <path>Aircraft/Ju-87/Sounds/canopy-slide1.wav</path>
      <property>controls/canopy/position-norm</property>
      <volume>
        <factor>0.35</factor>
      </volume>
      <volume>
        <property>/sim/current-view/view-number</property>
        <factor>-0.01</factor>
      </volume>
      <position>
        <x-m> 2.973</x-m>
        <y-m>-0.400</y-m>
        <z-m> 0.300</z-m>
      </position>
      <!--<reference-dist>1.5</reference-dist>
      <max-dist>5</max-dist>-->
    </canopyL>
    
    <canopyR>
      <name>canopy-openr</name>
      <mode>in-transit</mode>
      <path>Aircraft/Ju-87/Sounds/canopy-slide1.wav</path>
      <property>controls/canopy/position-norm</property>
      <volume>
        <factor>0.35</factor>
      </volume>
      <!--<volume>
      <property>/sim/current-view/view-number</property>
      <factor>-0.01</factor>
    </volume>-->
      <position>
        <x-m>2.973</x-m>
        <y-m>0.400</y-m>
        <z-m>0.300</z-m>
      </position>
      <!--<reference-dist>1.5</reference-dist>
      <max-dist>5</max-dist>-->
    </canopyR>
    
    <!-- WIND -->
    <wind>
      <name>wind</name>
      <mode>looped</mode>
      <path>Aircraft/Ju-87/Sounds/wind.wav</path>
      <condition>
        <and>
          <property>/sim/current-view/internal</property>
          <less-than>
            <property>controls/canopy/position-norm</property>
            <value>0.1</value>
          </less-than>
        </and>
      </condition>
      <property>velocities/airspeed-kt</property>
      <volume>
        <property>velocities/airspeed-kt</property>
        <factor>0.01</factor>
        <offset>0.05</offset>
        <min>0.05</min>
        <max>0.7</max>
      </volume>
      <volume>
        <property>surface-positions/flap-pos-norm</property>
        <factor>0.03</factor>
        <offset>0.05</offset>
        <min>0.05</min>
        <max>0.8</max>
      </volume>
      <pitch>
        <property>velocities/airspeed-kt</property>
        <factor>0.0075</factor>
        <offset>0.3</offset>
        <max>1.25</max>
      </pitch>
    </wind>
    
    <wind>
      <name>wind</name>
      <mode>looped</mode>
      <path>Sounds/wind.wav</path>
      <condition>
        <property>/sim/current-view/internal</property>
      </condition>
      <property>/velocities/airspeed-kt</property>
      <volume>
        <property>/fdm/jsbsim/aero/qbar-psf</property>
        <factor>0.0002</factor>
        <min>0.0</min>
        <max>0.3</max>
      </volume>
      <pitch>
        <property>/fdm/yasim/aero/qbar-psf</property>
        <factor>0.002</factor>
        <offset>1.25</offset>
      </pitch>
    </wind>
    
    <!-- AIRFRAME TORSION -->
    <high-g>
      <name>high-g</name>
      <mode>in-transit</mode>
      <path>Aircraft/Ju-87/Sounds/airframe-torsion.wav</path>
      <condition>
        <or>
          <greater-than>
            <property>accelerations/pilot-g</property>
            <value>2.2</value>
          </greater-than>
          <less-than>
            <property>accelerations/pilot-g</property>
            <value>-0.9</value>
          </less-than>
        </or>
        <property>/sim/current-view/internal</property>
      </condition>
      <volume>
        <property>accelerations/pilot-g</property>
        <factor>0.08</factor>
      </volume>
      <pitch>
        <property>accelerations/pilot-g</property>
        <factor>0.02</factor>
        <max>0.2</max>
      </pitch>
      <position>
        <x-m> 2.573</x-m>
        <y-m> 0.000</y-m>
        <z-m>-0.200</z-m>
      </position>
      <!--<reference-dist>1.5</reference-dist>
      <max-dist>3</max-dist>-->
    </high-g>
    
    <!-- PRE-STALL BUFFETING -->
    <pre-stall>
      <name>pre-stall</name>
      <mode>looped</mode>
      <path>Aircraft/Ju-87/Sounds/stall.wav</path>
      <condition>
        <or>
          <greater-than>
            <property>orientation/alpha-deg</property>
            <value>8.8</value>
          </greater-than>
          <less-than>
            <property>orientation/alpha-deg</property>
            <value>-6.5</value>
          </less-than>
        </or>
        <property>/sim/current-view/internal</property>
      </condition>
      <volume>
        <property>velocities/airspeed-kt</property>
        <factor>0.01</factor>
      </volume>
      <pitch>
        <property>orientation/alpha-deg</property>
        <factor>0.015</factor>
        <max>0.15</max>
      </pitch>
      <position>
        <x-m> 2.573</x-m>
        <y-m> 0.000</y-m>
        <z-m>-0.200</z-m>
      </position>
      <!--<reference-dist>1.5</reference-dist>
      <max-dist>3</max-dist>-->
    </pre-stall>
    
    <!-- MAGNETOS SWITCH -->
    <click>
      <name>mag up1</name>
      <mode>once</mode>
      <type>fall</type>
      <path>Sounds/click.wav</path>
      <condition>
        <equals>
          <property>controls/engines/engine[0]/magnetos</property>
          <value>1</value>
        </equals>
      </condition>
      <position>
        <x-m> 4.425</x-m>
        <y-m>-0.415</y-m>
        <z-m> 0.133</z-m>
      </position>
      <volume>
        <factor>0.3</factor>
      </volume>
      <pitch>
        <factor>0.9</factor>
      </pitch>
    </click>
    
    <click>
      <name>mag up2</name>
      <mode>once</mode>
      <type>fall</type>
      <path>Sounds/click.wav</path>
      <condition>
        <equals>
          <property>controls/engines/engine[0]/magnetos</property>
          <value>2</value>
        </equals>
      </condition>
      <position>
        <x-m> 4.425</x-m>
        <y-m>-0.415</y-m>
        <z-m> 0.133</z-m>
      </position>
      <volume>
        <factor>0.3</factor>
      </volume>
      <pitch>
        <factor>0.9</factor>
      </pitch>
    </click>
    
    <click>
      <name>mag up3</name>
      <mode>once</mode>
      <type>fall</type>
      <path>Sounds/click.wav</path>
      <condition>
        <equals>
          <property>controls/engines/engine[0]/magnetos</property>
          <value>3</value>
        </equals>
      </condition>
      <position>
        <x-m> 4.425</x-m>
        <y-m>-0.415</y-m>
        <z-m> 0.133</z-m>
      </position>
      <volume>
        <factor>0.3</factor>
      </volume>
      <pitch>
        <factor>0.9</factor>
      </pitch>
    </click>
    
    <click>
      <name>mag off</name>
      <mode>once</mode>
      <type>fall</type>
      <path>Sounds/click.wav</path>
      <condition>
        <equals>
          <property>controls/engines/engine[0]/magnetos</property>
          <value>0</value>
        </equals>
      </condition>
      <position>
        <x-m> 4.425</x-m>
        <y-m>-0.415</y-m>
        <z-m> 0.133</z-m>
      </position>
      <volume>
        <factor>0.3</factor>
      </volume>
      <pitch>
        <factor>0.9</factor>
      </pitch>    
    </click>
    
    <!-- GUNS -->
    <guns>
      <name>gunfire</name>
      <mode>looped</mode>
      <path>Aircraft/Ju-87/Sounds/gunfire.wav</path>
      <condition> 
        <property>controls/armament/trigger</property>
        <property>ai/submodels/submodel/count</property>
      </condition>
      <volume> 
        <factor>1.2</factor>
        <max>1.0</max>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </guns>
    
    <!-- WING BANG -->
    <bang>
      <name>wing bang</name>
      <mode>once</mode>
      <type>fall</type>
      <path>Aircraft/Ju-87/Sounds/wing_bent.wav</path>
      <condition>
        <equals>
          <property>sim/failure-manager/wing/bent</property>
          <value>1</value>
        </equals>
      </condition>
      <position>
        <x-m> 2.573</x-m>
        <y-m> 0.000</y-m>
        <z-m>-0.200</z-m>
      </position>
      <pitch>
        <property>sim/failure-manager/wing/bent</property>
        <factor>0.001</factor>
        <max>0.5</max>
      </pitch>
      <volume>
        <factor>3</factor>
        <max>2</max>
      </volume>
    </bang>
    
    <rain>
      <name>rain</name>
      <mode>looped</mode>
      <path>Aircraft/Ju-87/Sounds/rain_canopy.wav</path>
      <condition>
        <greater-than>
          <property>/environment/metar/rain-norm</property>
          <value>0.2</value>
        </greater-than>
      </condition>
      <volume>
        <property>/environment/metar/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>
